in reply to Re^2: is it possible to get PID for a command running background?
in thread is it possible to get PID for a command running background?
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 &')?
|
|---|