home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / rexx / 1304 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.7 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!van-bc!panam!emma!rick
  2. From: rick@emma.panam.wimsey.bc.ca (Rick Younie)
  3. Newsgroups: comp.lang.rexx
  4. Subject: SIGNAL ON Helpme
  5. Message-ID: <oylXr*he1@emma.panam.wimsey.bc.ca>
  6. Date: Fri, 06 Nov 1992 05:52:24 GMT
  7. Distribution: world
  8. Bcc: rick
  9. X-Newsreader: Arn V1.00 beta rel2
  10. Lines: 28
  11.  
  12. I've started appending an error trapping routine to my scripts, using most of
  13. the SIGNAL ON options.  The routine writes an entry in the system log when a
  14. script fails and also pulls the offending script into the text editor and
  15. positions the cursor on the line with the error.
  16.  
  17. This routine would be a perfect candidate for a subroutine if I could figure
  18. out a way to do it.
  19.  
  20. Have I got this right?  The SIGNAL instructions and the subroutines that they
  21. point to must be in the base script (what is the proper name for this
  22. anyway?).  So neither can be in an external subroutine.  It's not even
  23. possible to have this set-up routine as an internal subroutine, is it?  Then
  24. it could be tacked on the end of the script instead of messing up the start.
  25.  
  26. I thought of one way to do it, but it is fairly mickeymouse.  ARexx can
  27. invoke scripts asynchronously, so a script could call the setup routine and
  28. then exit.  The setup routine would then call it back in turn, passing back
  29. the original parameters and also a flag so a loop wouldn't be set up.  I'm
  30. not sure I've explained this clearly..
  31.  
  32. Is there an easier way to do this?
  33.  
  34. Rick
  35. --
  36.                          ------,------
  37.  rick@emma.panam.wimsey.bc.ca  |  1:153/765.9
  38.  rick@emma.tfbbs.wimsey.bc.ca  |  1:153/911
  39.                          ------'------
  40.