home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / ts9412.zip / AT.CMD next >
OS/2 REXX Batch file  |  1994-11-15  |  547b  |  25 lines

  1. /* At.cmd - to run at a specific time */
  2. /* by Curt Bates */
  3.  
  4.  
  5. /* trace results */     /* uncomment if you wish to trace the flow */
  6.  
  7. /* load the rexxutil extension */
  8. call Rxfuncadd 'sysloadfuncs','rexxutil','sysloadfuncs'
  9. call sysloadfuncs
  10.  
  11. say "Current Time:" time()
  12. say "What time should the command run at?"
  13. pull runtime
  14.  
  15. say "Enter command to execute:"
  16. pull cmd
  17.  
  18. do until time()>=runtime
  19.     say "Command '"cmd"' is scheduled for" runtime "and it is now" time()
  20.     call SysSleep 10
  21. end
  22.  
  23. say "Running" cmd 
  24. '@call' cmd
  25.