Date: Fri, 10 Nov 2000 23:53:29 +1100 From: "Dib, Allan L" <Dib.Allan.L@edumail.vic.gov.au> To: "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG> Subject: Sending an attachment from the command line Message-ID: <AB00AFFA26B4D31183520090276120C77F594B@edu001ms009.edumail.vic.gov.au>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2650.12"> <TITLE>Sending an attachment from the command line</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Hiya everyone,</FONT> </P> <P><FONT SIZE=3D2>I currently use the very useful 'mail' command from = the command line and from scripts to e-mail output of a progam. An = example:</FONT></P> <P><FONT SIZE=3D2>ls|mail -s "hello" = dib.allan.l@edumail.vic.gov.au</FONT> </P> <P><FONT SIZE=3D2>will e-mail me the output of the 'ls' command with a = subject line "hello".</FONT> </P> <P><FONT SIZE=3D2>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.</FONT></P> <P><FONT SIZE=3D2>If anyone could help me with this it would be greatly = appreciated.</FONT>=20 </P> </BODY> </HTML> ------_=_NextPart_001_01C04B15.49725540-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB00AFFA26B4D31183520090276120C77F594B>