<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed May 22, 2013 8:43 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 8:43 am</pubDate>
  <lastBuildDate>Wed May 22, 2013 8:43 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: bash script</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=28162#28162</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6587'&gt;liaty&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 25, 2006 11:23 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks, got it with.&lt;br /&gt;
/etc/init.d/xdm restart in the second script&lt;br /&gt;
&lt;br /&gt;
I can now call start/stop xgl from links on desktop.&lt;br /&gt;
Distro is OpenSuse 10.1&lt;br /&gt;
For other distros the command could be /etc/init.d/gdm restart</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=28162#28162</comments>
                                        <author>liaty</author>
                                        <pubDate>Tue Jul 25, 2006 11:23 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=28162#28162</guid>
                                      </item>
                                      <item>
                                        <title>RE: bash script</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=28158#28158</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 25, 2006 11:07 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      If you are running the script from an X terminal, it will stop when the X session shuts down.&lt;br /&gt;
&lt;br /&gt;
Try having the first script do&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;gnomesu screen start_xgl &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=28158#28158</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Jul 25, 2006 11:07 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=28158#28158</guid>
                                      </item>
                                      <item>
                                        <title>RE: bash script</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=28154#28154</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=39'&gt;towy71&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 25, 2006 10:34 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      you don't say which distro you're using and how you install xgl etc.?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=28154#28154</comments>
                                        <author>towy71</author>
                                        <pubDate>Tue Jul 25, 2006 10:34 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=28154#28154</guid>
                                      </item>
                                      <item>
                                        <title>bash script</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=28144#28144</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6587'&gt;liaty&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 25, 2006 8:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'm trying to create a single link to enable/disable xgl.&lt;br /&gt;
&lt;br /&gt;
So far I have two bash scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
gnomesu start_xgl&lt;br /&gt;
&lt;br /&gt;
which calls&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
gnome-xgl-switch --enable-xgl;killall gdm;gdm&lt;br /&gt;
&lt;br /&gt;
The problem I have I think is that the script itself is being shutdown with gnome session.&lt;br /&gt;
It worked once, xgl was enabled, gdm shutdown and then gdm logged into gnome session.&lt;br /&gt;
&lt;br /&gt;
Most of the time though it crashes the x server and a reboot is needed.&lt;br /&gt;
Other times it gets to the console but does not restart gdm.&lt;br /&gt;
&lt;br /&gt;
Can anyone see where I am going wrong?&lt;br /&gt;
Is there a better way to restart gdm?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=28144#28144</comments>
                                        <author>liaty</author>
                                        <pubDate>Tue Jul 25, 2006 8:49 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=28144#28144</guid>
                                      </item></channel></rss>