SCOUG-HELP Mailing List Archives

Return to [ 25 | August | 2000 ]

<< Previous Message << >> Next Message >>


Date: Fri, 25 Aug 2000 10:52:35 PDT
From: "Rollin White" <rollin@scoug.com >
Reply-To: scoug-help@scoug.com
To: < "scoug-help@scoug.com" > scoug-help@scoug.com >
Subject: SCOUG-Help: "Wait" utility ?

Content Type: text/plain

=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

On Fri, 25 Aug 2000 10:17:44 PDT, Peter Skye wrote:

>
>I need a "WAIT" command line utility that can wait a specified number of
>minutes or hours. For example,
>
> WAITMIN 30 to wait 30 minutes
> WAITHRS 2 to wait 2 hours
>
>Searched around on Hobbes but found nothing. Any suggestions?

Something that can easily be done in REXX:

/* */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
PARSE ARG Seconds
if Seconds = '' then do
say 'Command line is WAIT '
exit -1
end
say 'Sleeping for 'Seconds 'seconds'
call SysSleep Seconds

WAITMIN and WAITHR are left as an exercise for the reader :)

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 25 | August | 2000 ]