Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Monky Python (Scribe)
on Dec 04, 2002 at 09:03 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-08-09 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?