Help for this page

Select Code to Download


  1. or download this
    $pid = "/var/log/syslog.pid";
    unless (stat($pid)) { print "$pid not running\n"; }
    
  2. or download this
    $pid = "/var/run/syslogd.pid";
    if (stat($pid)) {
    ...
    } else {
            print "$pid not running\n";
    }