Do you know where your variables are? | |
PerlMonks |
Re: How to get the process Idby Corion (Patriarch) |
on Jul 29, 2015 at 07:38 UTC ( [id://1136717]=note: print w/replies, xml ) | Need Help?? |
This is more a shell question than a Perl question. The usual approach is to get a process which echoes its PID and then have that process replace itself with the target program, keeping the same PID. Shell scripts can do this using the following idiom:
This will print the PID to the console, but you could just as well output it to a file.
In Section
Seekers of Perl Wisdom
|
|