my $pt = Proc::ProcessTable->new; print "Found $progname running under $_->{pid}\n" for grep { $_->{pid} != $$ && $_->{cmndline} =~ /$progname/ } @{ $pt->table };
_________
broquaint
In reply to Re: Getting another process's pid
by broquaint
in thread Getting another process's pid
by blackjudas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |