home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!gatech!swrinde!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: Apending a file at the end of mail.
- Date: 22 Dec 1992 05:45:02 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 42
- Distribution: world
- Message-ID: <1h6a0uINN9ks@gap.caltech.edu>
- References: <01GSK4HGLSY800036I@MSUS1.MSUS.EDU>,<21DEC199210505504@spades.aces.com>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <21DEC199210505504@spades.aces.com>, gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546) writes:
- >In article <01GSK4HGLSY800036I@MSUS1.MSUS.EDU>, TS117%BSU.DECNET@MSUS1.BITNET (TANDI SUNARTO) writes...
- >#Ehud,
- >#
- >#Since I am a new user on VAX system, could you please elaborate your
- >#explanation on how to append a file at the end of mail, for example :
- >#tell me how to create an initiliazation file, and other stuff.
- >
- >This is in the FAQ list, so you might want to pick that up for more
-
- [rather clumsy {since it needs a subprocess} answer deleted]
-
- If you don't tend to edit files called MAIL$xxxxxxxx_EDIT.TMP except when
- you're sending MAIL, then, if you've got your editor set to TPU, put the
- following into a file pointed to by the logical name TPU$COMMAND:
- PROCEDURE SIGNATURE
- LOCAL OUTFILE, OLDPOS;
- ON_ERROR
- POSITION(OLDPOS);
- ENDON_ERROR;
-
- OUTFILE := GET_INFO(COMMAND_LINE, "OUTPUT_FILE");
- OLDPOS := MARK(NONE);
- IF (SUBSTR(OUTFILE, 1, 17) = "SYS$SCRATCH:MAIL_") AND
- (SUBSTR(OUTFILE, 26, 9) = "_SEND.TMP") AND
- (LENGTH(OUTFILE) = 34) THEN
- POSITION(BUFFER_END);
- READ_FILE("SYS$LOGIN:SIGNATURE.");
- POSITION(OLDPOS);
- ENDIF;
- POSITION(OLDPOS);
- ENDPROCEDURE
-
- SIGNATURE;
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-