Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Control other processes

by TOD (Friar)
on Mar 01, 2008 at 07:53 UTC ( [id://671345]=note: print w/replies, xml ) Need Help??


in reply to Control other processes

although i consider pc88mxer's suggestion the most elegant, maybe even a small shell script can serve the purpose:
#!/bin/bash for $PROC in daemon1 daemon2 daemon3 ...; do PID=$(ps aux | grep $PROC | awk '{print $2}') if [ $PID = '' ]; then $PROC &&; fi done
--------------------------------
masses are the opiate for religion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-03-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found