Re: MIME - scripting and symbol substitutions
- From: mabbuttg@xxxxxxxx
- Date: 6 Feb 2007 13:26:58 -0800
On Feb 6, 10:28 am, h...@xxxxxxxxxxxxxxxxxxxx (Joseph Huber) wrote:
In article <1170777587.265212.152...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, mabbu...@xxxxxxxx writes:Thanks, defining the logical did the trick.
Hi, I'm adding mail functionality to a script using MIME and MAIL.
This script is creating a text file with a different filename
everytime (time/date embedded in the filename), and attempting to mail
that script as an attachment. The constructed filename is stored in a
symbol called NEWFILENAME (which works, as the script generates the
file and manipulates it using that symbol) .
However, when the script invokes MIME, I can't seem to get the symbol
substitution to work with the filename when specifying "new" or "add"
- it keeps coming back with "invalid file name - respecify". I've
also tried it outside of the script, with the same results.
Inside of MIME, the syntax I've tried is:
- NEW 'NEWFILENAME'
- NEW 'NEWFILENAME
- NEW ''NEWFILENAME
Variations on this theme work in DCL scripts proper (and elsewhere in
this script itself), so at this point am I correct in assuming symbol
substitution doesn't work at all inside of the MIME interpreter? Do I
just have the syntax wrong?
I can't find many further details from HELP, and everything I've tried
so far hasn't worked, so is there an undocumented way to maybe invoke
MIME from the command line with all options (so normal DCL
substitutions will work)? Any other ideas/tricks I can try here
(writing a temp file with the commands substituted and redefining SYS
$INPUT for instance? Giving up on MIME and constructing a file for use
with SMTP_SFF)?
No, there is no way to make MIME substituing symbols (as almost all
VMS utilities).
But for filenames, You can DEFINE a logical instead of a symbol: that
(without substitution) should work:
$ DEFINE NEWFILENAME 'NEWFILENAME'
Then in the file which is the input to MIME:
NEW NEWFILENAME instead of NEW 'NEWFILENAME'
The above is for "constant" input for MIME, i.e. if You write it following
the $MIME command in DCL script.
Of course You can create the MIME input on the fly:
$ open/write m 'filename' !symbol filename holds temporary file-name
$ write m "NEW ",NEWFILENAME
$ write m .... some more MIME commands
$ write m "SAVE"
$ close m
$ pipe mime <'filename'
--
Joseph Huber , Muenchen,Germany: http://www.huber-joseph.de/- Hide quoted text -
- Show quoted text -
.
- Follow-Ups:
- Re: MIME - scripting and symbol substitutions
- From: Jan-Erik Söderholm
- Re: MIME - scripting and symbol substitutions
- References:
- MIME - scripting and symbol substitutions
- From: mabbuttg
- Re: MIME - scripting and symbol substitutions
- From: Joseph Huber
- MIME - scripting and symbol substitutions
- Prev by Date: Re: How to temporarily disable AUTO_DLIGHT_SAV?
- Next by Date: Re: Searching FMS documentation in pdf
- Previous by thread: Re: MIME - scripting and symbol substitutions
- Next by thread: Re: MIME - scripting and symbol substitutions
- Index(es):