Re: Automatic notification to application based on system date and time (Monta-vista linux)



On a sunny day (28 Sep 2006 03:53:15 -0700) it happened "dadu"
<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.

Polling getdate() once a second is not a big system load.




.



Relevant Pages