Jeff Peng wrote:
> On Wed, Feb 10, 2010 at 2:40 AM, Ariel Casas <ariel.ca...@gmail.com> wrote:
> 
>> My question is; how do I keep my perl script from dying if my shell
>> window accidentally closes while my perl script is paused at the
>> system function portion of my script?
> 
> Hi,
> 
> Make a daemon process for running in the script, or use nohup:
> 
> nohup perl a.pl
> 
> HTH.
> 
> Jeff.
> 

You can do the same thing inside Perl with %SIG:

  $SIG{HUP} = 'IGNORE';

See `perldoc perlvar` and search for /\%SIG/


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to