sleeping for 30 seconds
Richard P. Williamson
richard.williamson at u4eatech.com
Fri Mar 26 06:15:50 PST 2004
At 13:08 26/03/2004, Jan Grant wrote:
>On Fri, 26 Mar 2004, Richard P. Williamson wrote:
>You might, if the possibility is there, want to use the exit value of
>the main process to indicate errors, which is perhaps a little more
Except it doesn't tell me how long it ran for before it falling
over, which is the bit I need to look at.
>If you want the time in seconds between two points, you might try
>something like this:
> start_time=`date +%s`
> # ... do something
> end_time=`date +%s`
> time_taken=$(($end_time - $start_time))
That's what I'm looking for, thanks!
(that, and )
if [ $time_taken -lt 10 ]; then
Regards, and thanks!
More information about the freebsd-questions