in reply to Re: exec with cleanup
in thread exec with cleanup

But then I'd have to wait until the other script ends, before I can finally end this script. It would effectively keep both in memory at the same time. That doesn't look ideal.

Replies are listed 'Best First'.
Re^3: exec with cleanup
by Anonymous Monk on Jun 07, 2004 at 14:16 UTC
    You can do system("perl script2.pl arg1 arg2 &"), which will return immediately. And system("nohup perl scrip2.pl arg1 arg2 &") won't die when the parent process exits.