home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / misc / 29375 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!uwm.edu!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!noyles!juan
  2. From: juan@noyles.pha.pa.us (Juan J. E. T. Noyles)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: Wait without loading CPU?
  5. Message-ID: <715710560snx@noyles.pha.pa.us>
  6. Date: 5 Sep 92 16:29:20 GMT
  7. References: <3SEP199211094834@summa.tamu.edu>
  8. Organization: The Noyles OS/2 Platform
  9. Lines: 30
  10.  
  11. wjb5106@summa.tamu.edu writes in article <3SEP199211094834@summa.tamu.edu>:
  12. > In article <1557@cogsci.ucsd.EDU>, miller@cogsci.ucsd.EDU (Jeff Miller) writes...
  13. > >I need to put a "wait" command in a .bat file (DOS box)
  14. > >or in a .cmd file (OS/2 box).  The idea is just to let
  15. > >some time elapse (e.g., 2 minutes) before going
  16. > >on to the next command.  The key problem is that the
  17. > >"wait" command should put AS LITTLE LOAD AS POSSIBLE
  18. > >on the CPU.
  19. > > 
  20. > >I tried writing a little REXX script that checked the
  21. > >time, but this puts too much load on the CPU.
  22. > > 
  23. > With a REXX script you can use the the syssleep function.  For example, 
  24. > the following script will cause a five second delay:
  25. > /* Wait for five seconds */
  26. > call rxfuncadd 'syssleep','rexxutil','syssleep'
  27. > call syssleep 5
  28. > exit
  29. > _______________________________________________________________________
  30. > Walter Barnett        Aerospace Engineering        Texas A&M University 
  31.  
  32. And, using OS/2, the Simple News reading program, the system editor and REXXTRY, I was
  33. able to cut out this little tip, store it and test it in less than two minutes.
  34.  
  35. --
  36. Has anyone seen my sanity?                Juan@Noyles.pha.pa.us
  37.