From owner-freebsd-questions Fri Nov 10 9:40:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from oddjob.adhesivemedia.com (oddjob.adhesivemedia.com [207.202.159.77]) by hub.freebsd.org (Postfix) with ESMTP id 109EA37B479 for ; Fri, 10 Nov 2000 09:40:40 -0800 (PST) Received: from localhost (philip@localhost) by oddjob.adhesivemedia.com (8.9.3/8.9.3) with ESMTP id JAA74991; Fri, 10 Nov 2000 09:40:36 -0800 (PST) (envelope-from philip@adhesivemedia.com) Date: Fri, 10 Nov 2000 09:40:36 -0800 (PST) From: Philip Hallstrom To: "Dib, Allan L" Cc: "'freebsd-questions@FreeBSD.ORG'" Subject: Re: Sending an attachment from the command line In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Check out the mpack port... On Fri, 10 Nov 2000, Dib, Allan L wrote: > 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. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message