GrahamBright
Programmer
Hi,
I'm looking for a way to sleep for less than 1 second in unix.
if [ -f $MSISDN_FILE ] ; then
while read LINE
do
echo $LINE
#call script
#sleep $1 << not sufficent 1 second is too long
done < $MSISDN_FILE
I can't find any examples of how to use usleep() for this task as this I belive would be perfect.
Example:
I would like to execute a perl script with every half a second but this isn't possible using standard sleep?
Graham.
I'm looking for a way to sleep for less than 1 second in unix.
if [ -f $MSISDN_FILE ] ; then
while read LINE
do
echo $LINE
#call script
#sleep $1 << not sufficent 1 second is too long
done < $MSISDN_FILE
I can't find any examples of how to use usleep() for this task as this I belive would be perfect.
Example:
I would like to execute a perl script with every half a second but this isn't possible using standard sleep?
Graham.