Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to verify if a daemon is up and running ?

by Monky Python (Scribe)
on Dec 04, 2002 at 09:03 UTC ( [id://217435]=note: print w/replies, xml ) Need Help??


in reply to How to verify if a daemon is up and running ?

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://217435]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found