Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 06:03:18 +1100
From:      Peter Jeremy <PeterJeremy@optushome.com.au>
To:        Julian Elischer <julian@elischer.org>
Cc:        current@freebsd.org
Subject:   Re: cynchronised sleep capbilty..
Message-ID:  <20050201190318.GE45608@cirb503493.alcatel.com.au>
In-Reply-To: <20050201101113.J572@localhost>
References:  <20050201101113.J572@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050201190318.GE45608>