The snippet is in a script called " testd.pl" . The problem is that this code finds itself running and always exits. What I really want to do is to see if a previous invocation is still active ?? Any advice will me much appreciated. TIAmy $rc_testd = grep /testd/ , ( `ps -ef` ) ; if ($rc_testd > 0) { print "testd daemon is up and running \n" ; exit 1 ; }
In reply to How to verify if a daemon is up and running ? by wube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |