On 6/8/11, Mihir Mehta <[email protected]> wrote:
> Hi people,
>
> I am working on a Perl program that needs to get interrupts from the
> operating system (I am working on Ubuntu 11.04). So I searched for
First and unrelated to what you asked, I will suggest you add "use
strict;" after the "#!/usr/bin/perl" line. google for what it does.
Second, I don't know what the relation between interprocess
communication and signals is. signals in linux means events like
pressing control+c (sigint) and IPC means passinf messages (like text)
between programs. From the one line snippet you have, I asuume it's
the former. I am able catch signals without needing to include
anything.
sub interrupted
{
die "going down\n";
}
$SIG{INT} = \&interrupted;
(check for syntax. I wrote this from memory)
Sharad
--
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer