At 10:44 PM 4/13/02, you wrote: >Telnet in from another machine and do a ps -ef.
Mike, An interesting idea ... I have been running top via a telnet session. Sometimes the screensaver is seeable in top's output and sometimes I don't see it (in a 25 line display), so that wasn't getting the job done. A little experimentation with ps, grep, and perl lead to the script below. It executes nicely via rsh. #!/usr/bin/perl # # show.screensaver - identify and display xscreensaver # $ps_ef=`ps -ef | grep xscreensaver | grep -v grep`; $xscreensaver = substr($ps_ef,9,5); $proc=`ps alxw | grep $xscreensaver | grep -v grep | tail -1`; $command=substr($proc,69); ($program)=split( " ", $command); print $program; So far, it has shown 'lisa', 'gltext', 'cynosure', 'xlyap', and 'ripples'. Could be, it'll actually work! Thanks for the suggestion. It was an inspiration! David
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com