Re: cynchronised sleep capbilty..

From: Peter Jeremy <PeterJeremy_at_optushome.com.au>
Date: Wed, 2 Feb 2005 06:03:18 +1100
On Tue, 2005-Feb-01 10:20:24 -0800, Julian Elischer wrote:
>while:
>do
>	report results
>	sleep -until_next 10
>done

How about:
1) Re-write the loop in C, perl or equivalent using setitimer().  You
   can system() out to collect the results.
2) <kludge>Write a small C program that uses setitimer() and signals
   its parent whenever the timer triggers.  Run it in the background
   and just pause within the sh loop.</kludge>

-- 
Peter Jeremy
Received on Tue Feb 01 2005 - 18:03:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC