$pid = "/var/log/syslog.pid"; unless (stat($pid)) { print "$pid not running\n"; }