On Mon, 14 Feb 2000, Adam Wendt <[EMAIL PROTECTED]> wrote:
>
> Whats the best way in perl to run an external command and if while executing
> the command I hit ctrl + c it will just cancle the external command and continue
> on with the script instead of bailing out of everything?
Try playing around with setting up a signal handler like:
$SIG{'INT'} = 'myhandler';
and create a sub 'myhandler' does something besides exit.
depending on what the external command is doing and how it was called,
you may have to play a bit with the handler to get things the way you'd
like them.
Karl Runge
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************