Operating System - OpenVMS
1831957 Members
2664 Online
110034 Solutions
New Discussion

Re: why MAIL cannot recognize the DIS file?

 
Davor_7
Regular Advisor

why MAIL cannot recognize the DIS file?

the DIS file is in the current dir, but when use MAIL to send this file in one command, it says the error... how come?

$ mail /subject="test" "@maillist"
%MAIL-E-OPENIN, error opening USER$DISK2:"@MAILLIST".; as input
-RMS-F-FNM, error in file name
$ dir *.dis
Directory USER$DISK2:[AAA]
MAILLIST.DIS;1
Total of 1 file.
2 REPLIES 2
Kris Clippeleyr
Honored Contributor

Re: why MAIL cannot recognize the DIS file?

Hi,

Syntax is:

$ MAIL [filespec] [recipient]

E.g.:

$ mail/subject="test" test.txt "@MAILLIST"

Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Mike Reznak
Trusted Contributor

Re: why MAIL cannot recognize the DIS file?

Hi,
you can replace [file] with NL0: [null device]


$ mail /subject="test" nl0: "@maillist"

Mike
...and I think to myself, what a wonderful world ;o)