in reply to background system() and stillalive() sub
kill 0, will tell you if a process is still alive.
ikegami