(untested)
use Proc::ProcessTable; my $procs = Proc::ProcessTable->new; foreach ($procs->table) { if ($_->pid = $required_pid) { print $_->cmndline; last; } }
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: get name of process with pid
by davorg
in thread get name of process with pid
by lorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |