From owner-freebsd-questions Fri Nov 10 4:59: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from edu001hb004.edumail.vic.gov.au (edu001hb004.edumail.vic.gov.au [203.12.63.113]) by hub.freebsd.org (Postfix) with ESMTP id BA43237B479 for ; Fri, 10 Nov 2000 04:58:58 -0800 (PST) Received: by edu001hb004.edumail.vic.gov.au with Internet Mail Service (5.5.2650.21) id ; Fri, 10 Nov 2000 23:53:57 +1100 Message-ID: From: "Dib, Allan L" To: "'freebsd-questions@FreeBSD.ORG'" Subject: Sending an attachment from the command line Date: Fri, 10 Nov 2000 23:53:29 +1100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C04B15.49725540" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C04B15.49725540 Content-Type: text/plain Hiya everyone, I currently use the very useful 'mail' command from the command line and from scripts to e-mail output of a progam. An example: ls|mail -s "hello" dib.allan.l@edumail.vic.gov.au will e-mail me the output of the 'ls' command with a subject line "hello". I need to be able to e-mail a given (binary) file as an attachmentment with a similar kind command. I have had no luck with man pages for either sendmail or the 'mail' command. For example how would I e-mail someone the file /home/allan/test.tar.gz with one command line. If anyone could help me with this it would be greatly appreciated. ------_=_NextPart_001_01C04B15.49725540 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Sending an attachment from the command line

Hiya everyone,

I currently use the very useful 'mail' command from = the command line and from scripts to e-mail output of a progam. An = example:

ls|mail -s "hello" = dib.allan.l@edumail.vic.gov.au

will e-mail me the output of the 'ls' command with a = subject line "hello".

I need to be able to e-mail a given (binary) file as = an attachmentment with a similar kind command. I have had no luck with = man pages for either sendmail or the 'mail' command. For example how = would I e-mail someone the file /home/allan/test.tar.gz with one = command line.

If anyone could help me with this it would be greatly = appreciated.=20

------_=_NextPart_001_01C04B15.49725540-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message