Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by lightoverhead (Pilgrim)
on Dec 10, 2013 at 17:01 UTC ( [id://1066469]=note: print w/replies, xml ) Need Help??


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 &')?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found