Please assist youthful grasshopper on his quest. I am trying to detect when a process actually ends AFTER the kill is sent.
I have tried the following:
while (system "/bin/ps -p $a") {
log_err "2. waiting for /bin/ps -p $a to clear\n";
sleep 10;
}
But this does not work because (system "/bin/ps -p $a") does not return a true when the process is still running.
What is the proper way to code this?
TNX.
In reply to Detect Process End by rcolman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |