home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!uwm.edu!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!noyles!juan
- From: juan@noyles.pha.pa.us (Juan J. E. T. Noyles)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Wait without loading CPU?
- Message-ID: <715710560snx@noyles.pha.pa.us>
- Date: 5 Sep 92 16:29:20 GMT
- References: <3SEP199211094834@summa.tamu.edu>
- Organization: The Noyles OS/2 Platform
- Lines: 30
-
- wjb5106@summa.tamu.edu writes in article <3SEP199211094834@summa.tamu.edu>:
- >
- > 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
- >
-
- And, using OS/2, the Simple News reading program, the system editor and REXXTRY, I was
- able to cut out this little tip, store it and test it in less than two minutes.
-
- --
- Has anyone seen my sanity? Juan@Noyles.pha.pa.us
-