in reply to Re: Long running task from web app
in thread Long running task from web app

Thanks for your reply. The thing is, I don't want to watch the long running process - I just want to initiate it and then forget about it. So I guess I just want a way to background a process without relying on *nix's &

Replies are listed 'Best First'.
Re^3: Long running task from web app
by xdg (Monsignor) on Mar 04, 2006 at 17:55 UTC

    This is hard to do portably and reliably with the same code. You may want to alternatively fork & exec (on Unix) or use Win32::Process or Win32::Job on Windows, based on the value of $^O.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.