Thanks this is what I was looking for

Ronald Mundell
Information Security Developer
Security Innovation and Consulting
Nedcor Bank Ltd.
Email: [EMAIL PROTECTED] 
Cell: 0834111107
Phone: 011-8813751
 

-----Original Message-----
From: Antoine Hue [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] Interrupt Trapping?

[EMAIL PROTECTED] wrote:

> Good Day All
> 
>  
> 
> How does one trap interrupts? Under shell scripting one have the trap 
> command available. I am looking to catch the Ctrl-C keystrokes.
> 
>  
> 
> */Ronald Mundell/*

You need to catch the Unix signal SIGINT and attach a signal handler as 
you would do in C.
Have look at:
http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch16_16.htm

Antoine

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to