home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6537 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.7 KB

  1. Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u25042
  2. Organization: University of Illinois at Chicago
  3. Date: Wed, 18 Nov 1992 15:44:49 CST
  4. From: Bob  Jackiewicz <U25042@uicvm.uic.edu>
  5. Message-ID: <92323.154450U25042@uicvm.uic.edu>
  6. Newsgroups: comp.os.os2.programmer
  7. Subject: Re: Command in REXX to execute the text in a variable?
  8. Distribution: usa
  9. References: <widow.722104795@camelot> <1992Nov18.185413.15488@watson.ibm.com>
  10. Lines: 34
  11.  
  12. In article <1992Nov18.185413.15488@watson.ibm.com>, cnadler@vnet.ibm.com (Cliff
  13. Nadler) says:
  14. >>       Filename='f:\utils\unzip -v '
  15. >>       Program='g:\aoc.zip'
  16. >>       xxxxx Program,Filename
  17. >>
  18. >>       where xxxxx is a command that would pass "f:\utils\unzip -v
  19. >>       g:\aoc.zip" to an environment shell (DOS or OS/2).
  20. >
  21. >INTERPRET is the command you want, however, it is not recommended for use
  22. >(especially with compilers - they HATE that command !). If you just use
  23. >Program Filename
  24. >on a line, REXX will execute the values of the variables in it's default
  25. >environment (as REXX code if possible, else using the CMD environment for
  26. >a default).
  27.  
  28. The last thing I would use would be INTERPRET. That functionality is
  29. not needed here. I would go with the
  30.  
  31.    Program Filename
  32.  
  33. to be generic. To be politically correct, however, I think one of
  34.  
  35.     address CMD Program Filename
  36.     address DOS
  37.     address OS2
  38.  
  39. is more appropriate. In above, I KNOW DOS works, but I'm note too sure
  40. about CMD or OS2.
  41.  
  42.   Brought to you by the sick mind of      University of Illinois at Chicago
  43.   Bob Jackiewicz, writer of wrongs,                    BITNET: U25042@UICVM
  44.   wronger of rights; not UIC.                InterNet: U25042@uicvm.uic.edu
  45.   OS/2: Bill Gates' worst nightmare!
  46.