home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!narfvx.enet.dec.com!francini
- From: francini@narfvx.enet.dec.com (John Francini)
- Newsgroups: comp.os.vms
- Subject: Re: Can DCL programs execute 'other' commands ?
- Message-ID: <1993Jan24.225809.17160@nntpd.lkg.dec.com>
- Date: 24 Jan 93 22:34:14 GMT
- References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corporation, Littleton, MA
- Lines: 38
-
-
- In article <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>, HANY@JCSVAX1.BITNET writes...
- >Hi ..
- > I am new to writing DCL programs. I tried to make a program
- >execute commands other than those issued at the '$' prompt, but just
- >couldn't figure out how to do it. For example .. What would be the code
- >for a program that would read 2 mail messages, then return back to the
- >'$' ? .. The following did NOT work :
- >
- >$ mail
- >$ read 1
- >$ read 2
- >$ exit
- >
- >Thanks for any help.
- >Hany.
- >[ e-mail: hany@jcsvax1.bitnet
- > or: hany%jcsvax1.bitnet@pucc.princeton.edu ]
- >
- >
-
- Leave off the dollar signs for every line being fed to the program, i.e.:
-
- $ mail
- read 1
- read 2
- exit
- $ more-dcl-stuff
-
-
- Be aware that DCL will not perform symbol substitution on data lines fed to
- programs. [I personally think this is most unfortunate, but I have no
- input to VMS development...]
-
- John Francini
- PATHWORKS Server Engineering Group
- Digital Equipment Corp.
- Littleton, MA
-