With Perl, you can simply use getppid(), but since this isn't perl, you can use this:
ps -o ppid= -p $pid
...and that should get you your parent PID without having to use Perl, sed etc.
In reply to Re: -n and -p suck up ARGV no matter what
by stevieb
in thread -n and -p suck up ARGV no matter what
by mpersico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |