mail , mailx
Derek Martin
ddm at pizzashack.org
Sat Aug 4 00:27:57 EDT 2001
On Fri, Aug 03, 2001 at 04:57:42PM -0400, John Abreau wrote:
> On Fri, 3 Aug 2001 Peter Wu <peterwu at fenix2.dol-esa.gov> wrote:
>
> > Hello,
> > I am using mail command trying to send two files from unix
> > Say, mail abc at ddd.net < testfile will send testfile to abc at ddd.net
> >
> > Is there a possibility to send two files at one time
> > lide mail abc at ddd.net < testfile testfile2
> > I tried this line of command but it always gave me error message
> > So, Do you have any idea how i can send two files at one time
> >
> >
> > my system is Dynix/ptx
>
> Mailx predates the MIME standard, and thus it doesn't attachments. If you
> wanted to send multiple files with mailx, you'd have to first combine them
> into one file. A common convention is to use "tar" create a combined file,
> "gzip" to compress that file, and "uuencode" to clean it up for the mail
> system.
If you really need to use the mail command, and if the files both
contain only ASCII text, you can use mail to do this with something
like:
(cat file1; echo -e "\n"; cat file2) | mail user at yourhost.com
HTH.
--
---------------------------------------------------
Derek Martin | Unix/Linux geek
ddm at pizzashack.org | GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list