home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21892 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.1 KB

  1. Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Can DCL programs execute 'other' commands ?
  5. Date: 25 Jan 1993 01:29:27 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 42
  8. Distribution: world
  9. Message-ID: <1jvfpnINNjtu@gap.caltech.edu>
  10. References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>, HANY@JCSVAX1.BITNET writes:
  15. >        I am new to writing DCL programs. I tried to make a program
  16. >execute commands other than those issued at the '$' prompt, but just
  17. >couldn't figure out how to do it. For example .. What would be the code
  18. >for a program that would read 2 mail messages, then return back to the
  19. >'$' ? .. The following did NOT work :
  20. >
  21. >$ mail
  22. >$ read 1
  23. >$ read 2
  24. >$ exit
  25.  
  26. You put $ signs only at the beginnings of DCL commands, not in front of lines
  27. which are data for an image.  In your case, you want:
  28.     $ MAIL
  29.     READ 1
  30.     READ 2
  31.     EXIT
  32. If you need to provide data in which one or more records start with a $, you
  33. need to use the DECK command (see the on-line help for details) just after the
  34. command that invokes the image, and the EOD command (see the on-line help for
  35. details) to terminate the data stream for the program.  For example, if you
  36. have an executable, FUBAR.EXE, and you want to provide the following data to
  37. it:
  38.     $SPAM
  39.     SPAM
  40.     WHATEVER
  41. you'd use:
  42.     $ RUN FUBAR
  43.     $ DECK
  44.     $SPAM
  45.     SPAM
  46.     WHATEVER
  47.     $ EOD
  48. --------------------------------------------------------------------------------
  49. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  50.  
  51. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  52. understanding of astronomy is purely at the amateur level (or below).  So
  53. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  54. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  55. hold me responsible for it, but my organization had nothing to do with it.
  56.