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

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!narfvx.enet.dec.com!francini
  2. From: francini@narfvx.enet.dec.com (John Francini)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Can DCL programs execute 'other' commands ?
  5. Message-ID: <1993Jan24.225809.17160@nntpd.lkg.dec.com>
  6. Date: 24 Jan 93 22:34:14 GMT
  7. References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>
  8. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  9. Organization: Digital Equipment Corporation, Littleton, MA
  10. Lines: 38
  11.  
  12.  
  13. In article <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>, HANY@JCSVAX1.BITNET writes...
  14. >Hi ..
  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. >$ mail
  21. >$ read 1
  22. >$ read 2
  23. >$ exit
  24. >Thanks for any help.
  25. >Hany.
  26. >[ e-mail: hany@jcsvax1.bitnet
  27. >      or: hany%jcsvax1.bitnet@pucc.princeton.edu ]
  28.  
  29. Leave off the dollar signs for every line being fed to the program, i.e.:
  30.  
  31. $ mail
  32. read 1
  33. read 2
  34. exit
  35. $ more-dcl-stuff
  36.  
  37.  
  38. Be aware that DCL will not perform symbol substitution on data lines fed to
  39. programs.  [I personally think this is most unfortunate, but I have no
  40. input to VMS development...]
  41.  
  42. John Francini
  43. PATHWORKS Server Engineering Group
  44. Digital Equipment Corp.
  45. Littleton, MA
  46.