Waiting for a process to die
kelly.terry.jones at gmail.com
Sun May 31 18:17:29 UTC 2009
How do I wait for a specific process to die? I want to do something like:
waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" kelly.terry.jones at gmail.com)
I'm sure this is trivial, but I can't find a way to do it.
I wrote a Perl script that checks every second if /proc/pid exists,
but that only works if /proc is mounted + I'm now on VMs which can't
easily mount /proc
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
More information about the freebsd-questions