home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / loop.zip / read.me < prev    next >
Text File  |  1994-12-26  |  1KB  |  59 lines

  1. Two OS/2 Commands "sleep" and "loop".
  2.  
  3. Written By: Greg Goodwin with gcc. 
  4.  
  5. Must have emx.dll files.
  6.  
  7. Enjoy!
  8.  
  9. ==================================================
  10. Program:  Sleep.exe
  11.  
  12. Function: Sleep for specified time.
  13.  
  14.  
  15. ==================================================
  16. Program:  Loop.exe
  17.  
  18. Function: Execute command more than once
  19.  
  20.  
  21. ==================================================
  22. Sleep.exe in detail:
  23.  
  24. Usage:    sleep -s time 
  25.  
  26. Sleep for time. Default time is in miliseconds. 
  27.  
  28. [C:\] sleep 20        <-- sleep 20 miliseconds
  29.  
  30. [C:\] sleep -s 20     <-- sleep 20 seconds 
  31.  
  32.  
  33. ==================================================
  34. Loop.exe in detail:
  35.  
  36. Usage:    loop [-t] [-n<count>] [-m] [-s<count>] [<prog>] [..<progx>]
  37.           -t will report time used.
  38.           -n loop count.
  39.           -s sleep for count
  40.           -m sleep count is in miliseconds : default is seconds
  41.  
  42.  
  43. Example:
  44.  
  45. [C:\] loop -t -n 4 -s 3 "dir *.exe /w" "ps -p"
  46.  
  47. The above command will execute the commands "dir *.exe /w" and "ps -p"
  48. report the time, sleep for three seconds. This will be repeated 
  49. four times.
  50.  
  51. If no loop count value is given the command will be executed 
  52. forever or until the user breaks.
  53.  
  54.  
  55. Time Display look like this:
  56.  
  57.  94/12/26 03:43:35  up for:  0 days  0 hours  0 minutes 13 seconds
  58. Wait 3 Seconds
  59.