Hey Hans,
Go check out a program written by Evan Borgstrom, it is a program written
in perl that will check to see if a program is up, and email you the
status.. It runs as a cron job. Also you can add additional services quite
easily.
Author: Evan Borgstrom
Email : syntec at unixpimps.org
WWW : http://www.unixpimps.org/safetynet
the name of the program is safetynet. Quite a nifty little piece-o-work..
On 2001.08.21 16:04 "Baartmans, Hans" wrote:
> Is there good way to execute a UNIX 'ps' command from Perl and check to
> see
> if a process is running or exists? For instance, I would like to check
> to
> see if Sendmail is running. Under a UNIX shell command you can execute,
> '/usr/bin/ps -ef | grep sendmail'.
>
> Is there an easy way to do this in Perl?
>
> Thanks in advance!!!
>
> Hans
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]