in reply to Re: print on reboot or process shutdown
in thread print on reboot or process shutdown
Ty. I read the doc and was able to fix it.
This is the code that I place in the beginning of my script.
But the END block is also executed when the script finishes. And it should only be executed on reboot or process kill.END { open(THEND,">ABORTED"); close(THEND); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: print on reboot or process shutdown
by gaal (Parson) on Jul 29, 2008 at 21:31 UTC | |
Re^3: print on reboot or process shutdown
by psini (Deacon) on Jul 29, 2008 at 21:30 UTC |
In Section
Seekers of Perl Wisdom