cynchronised sleep capbilty..

Peter Jeremy PeterJeremy at optushome.com.au
Tue Feb 1 11:03:31 PST 2005


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


More information about the freebsd-current mailing list