On 3/22/2012 8:29 AM, AlbyVA wrote:
On Tue, Mar 20, 2012 at 18:23, Spacy <[email protected]
<mailto:[email protected]>> wrote:
> for i in `seq 0 120`; do date; sleep 1; done
Spacy:
How would that look as a Unix /bin/sh script?
Like this:
for i in `seq 0 120`; do date; sleep 1; done
;-)
In the off-chance that the sleep would start at the beginning of a
second and the sleep of one second plus any other processing time would
last more than one second, I'd use a fractional sleep amount, which most
linuxes support:
for i in `seq 0 240`; do date; sleep 0.5; done
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool