in reply to Re: Keeping a program running
in thread Keeping a program running

That looks like it will work very well.

One question, though - how do I test for the parent versus the child (so I know to start the external program in the child and not in the parent)?

Replies are listed 'Best First'.
Re^3: Keeping a program running
by graff (Chancellor) on May 09, 2007 at 18:44 UTC
    That's covered pretty well in the referenced man page for fork: it returns undef on failure, zero in the child process, and the child's pid in the parent process.