From owner-freebsd-questions Fri Nov 10 13:18:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 658F737B4D7 for ; Fri, 10 Nov 2000 13:18:35 -0800 (PST) Received: (qmail 46456 invoked by uid 100); 10 Nov 2000 21:18:34 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14860.26154.727656.990738@guru.mired.org> Date: Fri, 10 Nov 2000 15:18:34 -0600 (CST) To: "Dib, Allan L" Cc: questions@freebsd.org Subject: Re: Sending an attachment from the command line In-Reply-To: <36587401@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dib, Allan L types: > 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. First - don't send HTML to the list, even if you send a plain text copy as well. It's considered rude. Some people are using mail readers that don't handle HTML; others are reading the digest, which looses the MIME information needed to read the message (this is a bug in the digester that I've PR'ed already). > 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. A quick "make search key=mime" in /usr/ports turns up /usr/ports/converters/mpack. That should do the job for you.