home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!tamsun.tamu.edu!summa.tamu.edu!wjb5106
- From: wjb5106@summa.tamu.edu (Walter Barnett)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Wait without loading CPU?
- Message-ID: <3SEP199211094834@summa.tamu.edu>
- Date: 3 Sep 92 16:09:00 GMT
- Article-I.D.: summa.3SEP199211094834
- References: <1557@cogsci.ucsd.EDU>
- Sender: news@tamsun.tamu.edu (Read News)
- Organization: Texas A&M University
- Lines: 22
- News-Software: VAX/VMS VNEWS 1.41
-
- In article <1557@cogsci.ucsd.EDU>, miller@cogsci.ucsd.EDU (Jeff Miller) writes...
- >I need to put a "wait" command in a .bat file (DOS box)
- >or in a .cmd file (OS/2 box). The idea is just to let
- >some time elapse (e.g., 2 minutes) before going
- >on to the next command. The key problem is that the
- >"wait" command should put AS LITTLE LOAD AS POSSIBLE
- >on the CPU.
- >
- >I tried writing a little REXX script that checked the
- >time, but this puts too much load on the CPU.
- >
-
- With a REXX script you can use the the syssleep function. For example,
- the following script will cause a five second delay:
-
- /* Wait for five seconds */
- call rxfuncadd 'syssleep','rexxutil','syssleep'
- call syssleep 5
- exit
-
- _______________________________________________________________________
- Walter Barnett Aerospace Engineering Texas A&M University
-