my $pid = 1234; if( kill 0, $pid ) { # it's alive } else { # it's dead }
In reply to Re^3: how can a perl script determine it's own PID while running
by friedo
in thread how can a perl script determine it's own PID while running
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |