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
[-- Attachment #1 --] 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. [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>Sending an attachment from the command line</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>Hiya everyone,</FONT> </P> <P><FONT SIZE=2>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=2>ls|mail -s "hello" dib.allan.l@edumail.vic.gov.au</FONT> </P> <P><FONT SIZE=2>will e-mail me the output of the 'ls' command with a subject line "hello".</FONT> </P> <P><FONT SIZE=2>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=2>If anyone could help me with this it would be greatly appreciated.</FONT> </P> </BODY> </HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB00AFFA26B4D31183520090276120C77F594B>
