|
Posted by Joost Diepenmaat on June 9, 2008, 3:43 pm
Please log in for more thread options
> I have this perl script that I have been using for bout 10 years that
> sends out a mass email to one of my clients member list (about 4,000)
> people. I run it at a shell prompt on an Apache server and it will
> display back a "sent email address" for each one it processes. Takes
> about 2 hours to run through. I am not concerned about speeding it up
> or anything since I only do it once a week and usually off eating
> lunch while it runs, but I have always wondered. Would perl be
> notified and / or care if I closed that shell window or would it just
> continue on till it was done?
By default programs exit on a SIGHUP, so unless the script you're
using takes care to handle that, it will probably exit.
If you want to, you could run the program in screen instead (I
actually prefer this for long-running processes, since it can be
slightly too easy to kill an xterm / ssh session).
See: http://en.wikipedia.org/wiki/SIGHUP http://en.wikipedia.org/wiki/GNU_Screen
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
|