Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have found documentation on using sigtrap to catch the signals listed from a `kill -l` and execute a code block based on that..., but how do i know which key sequences are bound to which signals at an OS level?? Or how can i define my own key-sequence traps within my shell / perl program to send signals which will be 'caught' and modify a variable?my $ping = Net::Ping->new("icmp"); if ($ping->ping($host, $threshold)) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using traps to autoincrement / decrement variables
by Fletch (Bishop) on Oct 08, 2001 at 05:21 UTC | |
|
Re: Using traps to autoincrement / decrement variables
by pjf (Curate) on Oct 08, 2001 at 09:42 UTC |