in reply to Re: is it possible to get PID for a command running background?
in thread is it possible to get PID for a command running background?

Thank you ikegami and other monks!

Yes, it's my impression that we may not be able to get PID for a system() launched process.

  • Comment on Re^2: is it possible to get PID for a command running background?

Replies are listed 'Best First'.
Re^3: is it possible to get PID for a command running background?
by ikegami (Patriarch) on Dec 11, 2013 at 15:12 UTC

    You missed the point.

    The system-launched process ends before system returns, so why would you want the PID of a process that no longer exists.

    You don't want the PID of the process launched by system; you want the PID of some process launched by the system-launched process.

    What would that be for system('foo & bar &')?