SunOS (Solaris) probably doesn't have the GNU tools installed by default. You might consider installing them. It's also possible that they're already installed in your system, perhaps in some directory that isn't in your default $PATH. GNU sleep is part of the coreutils package.
should sleep for 500000 microseconds (0.5 second) -- but the overhead of invoking perl is substantial.
For minimal overhead, I'd write a small C program that calls usleep() or nanosleep(). Note that usleep() might not handle intervals greater than 1 second.
4
Chriszuma
On
I don't know what version this was implemented in, but my version of sleep (v6.12) accepts decimals. sleep 0.5 works.
If yours is too old for that, a short python or C program would probably be your only solution.
0
island_hopper
On
Have you tried looking at the man pages? It should have a way to do a delay that is less than a second, I am not a Linux machine right now so can't look it up for you.
SunOS (Solaris) probably doesn't have the GNU tools installed by default. You might consider installing them. It's also possible that they're already installed in your system, perhaps in some directory that isn't in your default
$PATH. GNUsleepis part of the coreutils package.If you have Perl, then this:
should sleep for 500000 microseconds (0.5 second) -- but the overhead of invoking perl is substantial.
For minimal overhead, I'd write a small C program that calls
usleep()ornanosleep(). Note thatusleep()might not handle intervals greater than 1 second.