in reply to keyboard input during runtime...
Now you can terminate your script with CTRL-C and before it terminates, it will do the END block. So you can do all the nesessary stuff in there to save your results.SIG{INT}=sub{exit}; END { open LOGFILE, ">filename"; print LOGFILE '...everything figured out up to now '; close LOGFILE; }
update as tachyon mentioned, added the SIG{INT} line.
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: keyboard input during runtime...
by tachyon (Chancellor) on Aug 06, 2001 at 18:28 UTC |