Regarding writing a unix daemon in perl, you might have a look at
http://www.webreference.com/perl/tutorial/9/index.html
-tristram
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hine to promiscuous
mode?
--
Tris Nefzger
-Original Message-
From: Stephen Hardisty [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:10 PM
To: Perl List
Subject: Re: stop/start
> $SIG{ALRM} = {
> `this-script`;
> exit;
> };
Sorry, didn't
> $SIG{ALRM} = {
> `this-script`;
> exit;
> };
Sorry, didn't think it through (before anybody notices.). Remove the
thing that executes the script (the bit in backticks) and just have the
process start on a cron job.
Tired, apologies.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Hi,
you could write a handler for the signal alarm that starts a new process and
kills the current:
$SIG{ALRM} = {
`this-script`;
exit;
};
At the beginning of the script set the alarm to go off 24 hours later:
alarm(84600);
DISCLAIMER: haven't really thought it through and it's really hac
Rmck wrote:
>
> Hi
Hello,
> I'm trying to get this to work in perl.
Which version of Perl?
> I want to start a unix process send it to a log file. Then at midnight
> kill it and restart it, with the date at the top.
Why do you need to kill and restart it? Can't you just print the date at
mid