But check the manual page of your systems ps. Different OSses have different psses using different command line switches.my $cmd = `ps -hp $PID -o %c`;
In reply to Re: get name of process with pid
by Perl Mouse
in thread get name of process with pid
by lorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |