Quote |
I was looking for something along the lines of a background app that can check if x is running, if it isn't it will run startx. Would that work? And whats the best way to do this... |
Code Sample |
#!/usr/bin/perl $x=0; while ($x<1 ) { @xrunnin=`ps aux`; @xrunnin=grep(/startx/,@xrunnin); $a=@xrunnin; if ($a <2) { system (" startx&"); } sleep 3; } |