in reply to How best to see if syslogd is running?

If you've already got the PID available just and you're running as the same UID you can use kill 0 => $pid to see if it's still running (see perldoc -f kill); otherwise you'll need to use ps or something like Proc::ProcessTable.

Update:, Gah, had the wrong name for the module.

Replies are listed 'Best First'.
Re^2: How best to see if syslogd is running?
by bluto (Curate) on Jan 03, 2005 at 21:47 UTC
    Note: Sending a "kill 0" is preferable to ps, but make sure you run this as root (in the case of syslogd) since some systems will return a permission error if you aren't authorized to actually kill the target process.