Alex Salmon wrote:
> 
> hi all
> 
> i am writing a c program and i want it to lie dormant then every say 5
> mins wake up and test somthing and then lie again. It has to be c native
> so i can port it but it must work in linux for the moment, i have
> thought about using time_t but to test that i end up in
> endless loops and all sorts of ugly things.

man 3 sleep

For a five minute delay try sleep (5 * 60). Sleep exists on most
Unix like OSes.

Erik
-- 
+-------------------------------------------------+
     Erik de Castro Lopo     [EMAIL PROTECTED]
+-------------------------------------------------+
Microsoft is not the answer.
Microsoft is the question. NO is the answer.


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to