Sample Header Ad - 728x90

Set a callback for when a certain process is spawned

2 votes
1 answer
501 views
The script I'm writing launches process A, which after an uncertain amount of time, launches a child process B. I need the script to execute a command C which depends on process B. But B might not be there at call time! **How to wait until a process with a certain given name is spawned?** I reckon I could just blindly poll/wait inside an infinite loop but maybe there's a fancier solution...
Asked by deprecated (2871 rep)
Mar 28, 2012, 09:48 AM
Last activity: Jul 5, 2012, 10:16 PM