perl -e '( system("test -e /var/run/process_email.pid && ps nh -p`cat +/var/run/process_email.pid` >& /dev/null") == 0 ) or print "Not Runni +ng!\n";'
In reply to Re: checking if daemon is running
by turo
in thread checking if daemon is running
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |