Re: Automatic notification to application based on system date and time (Monta-vista linux)
- From: Bill Medland <billmedland@xxxxxxx>
- Date: Thu, 28 Sep 2006 13:41:15 GMT
Jan Panteltje wrote:
On a sunny day (28 Sep 2006 03:53:15 -0700) it happened "dadu"Not that I really know but wouldn't the "normal" way be to decide on a
<amol.bhopale@xxxxxxxxx> wrote in
<1159440795.332584.175310@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hello guys,
I need OS support in my application to receive signal or event from OS
when I configure it for particular date and time. In short, I am
expecting OS notification in my application on particular date and
time. Can anybody please help me on, how to implement this on linux?
Cheers,
Dadu.
I am not 100% sure, but I think there is no OS function for that.
Your program could poll getdate() every second, and compare year, month,
monthday, hour, minute and second to your 'setpoint'.
You can also use crontab to start a program, but I think crontab does not
care about years.
signal, put the program's pid in a file in /var and have cron schecdule a
kill call with that signal to that pid?
Polling getdate() once a second is not a big system load.
--
Bill Medland
.
- Follow-Ups:
- References:
- Prev by Date: Re: Automatic notification to application based on system date and time (Monta-vista linux)
- Next by Date: Re: Automatic notification to application based on system date and time (Monta-vista linux)
- Previous by thread: Re: Automatic notification to application based on system date and time (Monta-vista linux)
- Next by thread: Re: Automatic notification to application based on system date and time (Monta-vista linux)
- Index(es):
Relevant Pages
|