in reply to Re^3: Detect Process End
in thread Detect Process End

It's a bit hacky - but I've done it myself ;) THe only other trick is you need to use `ps -h -p $a` to omit the ps header (which would otherwise mean you never get a null string).