List Info

Thread: Hot to check a process is running; if not start it




Hot to check a process is running; if not start it
user name
2006-11-24 17:24:04
Hi friends,
i wanted to create a daemon and wants to be assured it is
running successfully.
so i think of making a script in perl which will see that
the process is running and if not start the process.
I need inputs on how to check , i know of the command like
ps -ef and should i store the output in a variable and do
regex for the file name or what.
Pl. help
Regards,
Abhishek jain



[Non-text portions of this message have been removed]




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/Perl_Official/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/Perl_Official/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:Perl_Official-digest@yahoogroups.com 
    mailto:Perl_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    Perl_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )