[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sleeping in a shell



On Mon, Sep 13, 1999 at 07:59:35PM +0200, Marcin Owsiany wrote:
> Low!
> Does anybody of you guys know a way to sleep for an amount of time less than
> a second in a shell (bash/sh) script?
> 
> sleep refuses arguments like: 0.5 0,5 1/2
> 
> Maybe there is a nice perl command to do this?
> 
> I really don't feel like writing a my_sleep.c ...

The usleep shell command does what you want (though as has been pointed
out, you may be better off translating to perl.

Jon Leonard


Reply to: