home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / misc / 29192 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.3 KB  |  36 lines

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