Jeff Peng wrote:
> On Wed, Feb 10, 2010 at 2:40 AM, Ariel Casas <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/