home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / NazCron_v1.0 / NCStart.rexx < prev    next >
OS/2 REXX Batch file  |  1989-08-06  |  1KB  |  60 lines

  1. /***********************/
  2. /* NCStart.rexx        */
  3. /* 7/20/89 - Don Nafis */
  4. /***********************/
  5.  
  6. /* Suggested NazCron startup script */
  7.  
  8. /* Remove the comments below to trace this script. */
  9. /*--->trace results<---*/
  10.  
  11. options failat 20
  12.  
  13. /* Start NazCron.  If this fails, copy NazCron to your C: directory. */
  14. address command
  15.  
  16. NazCron
  17. if (rc ~= 0) then
  18. do
  19.   say 'NAZCRON program not found.'
  20.   exit 20
  21. end
  22.  
  23. /* If you have not yet upgraded to ARexx 1.10, remove this group of
  24.    statements and hope for the best. */
  25.  
  26. waitforport NAZCRON
  27. if (rc ~= 0) then
  28. do
  29.   say 'NAZCRON port not available.  Return code: '||rc
  30.   exit 20
  31. end
  32.  
  33. /* End of group requiring ARexx version 1.10 */
  34.  
  35.  
  36. /* This set of statements will "lock" the events from file S:crontab
  37.    into memory.  NazCron will not access the file again until you
  38.    issue the UNLOCK_EVENTS command.  This is a good practice if you
  39.    wish to keep NazCron overhead to a minimum. */
  40.  
  41. address NAZCRON
  42.  
  43. LOCK_EVENTS
  44. if (rc ~= 0) then
  45. do
  46.   say
  47.   say '    NazCron has started but was unable to lock'
  48.   say '     NazCron events.  Error code: '||rc
  49.   say
  50. end
  51. else
  52. do
  53.   say
  54.   say '    NazCron has started with file events locked.'
  55.   say
  56.   say '     To resume processing from S:crontab'
  57.   say '     send the UNLOCK_EVENTS command.'
  58.   say
  59. end
  60.