in reply to How to verify if a daemon is up and running ?
Hi,
the "quick and dirty" solution to your problem description.
For a better approach you should consider the solutions by rob_au or ehdonhon.
MP
the "quick and dirty" solution to your problem description.
But it only works if you have exacly one running "testd.pl".my $rc_testd = grep /testd/ , ( `ps -ef` ) ; if ($rc_testd > 1) { print "testd daemon is up and running \n" ; exit 1 ; }
For a better approach you should consider the solutions by rob_au or ehdonhon.
MP
|
---|
In Section
Seekers of Perl Wisdom