[gentoo-user] How to tell Cron X is running or not

2007-11-25 Thread reader
Scripts that test for X running might work in a shell but not when the script is run by cron. For example: This code: tty|grep pts retval=$? if [[ $retval 0 ]];then print X isn't running just now... postponing rsync of WWW until such time as it is... exiting exit fi Runs

Re: [gentoo-user] How to tell Cron X is running or not

2007-11-25 Thread Andrey Falko
On Nov 25, 2007 8:27 PM, [EMAIL PROTECTED] wrote: Scripts that test for X running might work in a shell but not when the script is run by cron. For example: This code: tty|grep pts retval=$? if [[ $retval 0 ]];then print X isn't running just now... postponing rsync of WWW