|
sleeping until time comes
I want to write a daemon program (in c) which copies the contents of one folder into another folder. And this must take place daily in between some period of time. i.e. in between start time and end time. Is any body having idea that how can i put the process into the sleep until start time comes and does the task and go into sleep again untill tomorrow' time. I know that there is a sleep function but manual is saying it is not reliabe, because it may return before the period. plz give me some suggetion.
Thanx in advance.
regards,
rajesh.
|