From owner-freebsd-questions Thu Sep 23 13:19:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 82FFD16310 for ; Thu, 23 Sep 1999 13:18:57 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from lithium.scientia.demon.co.uk ([192.168.0.3] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.032 #1) id 11UE0a-0007sm-00; Thu, 23 Sep 1999 19:54:20 +0100 Received: (from ben) by lithium.scientia.demon.co.uk (Exim 3.032 #1) id 11UE0Z-0007A9-00; Thu, 23 Sep 1999 19:54:19 +0100 Date: Thu, 23 Sep 1999 19:54:18 +0100 From: Ben Smithurst To: river Cc: questions@freebsd.org Subject: Re: Automailing a file fron cron Message-ID: <19990923195418.A27502@lithium.scientia.demon.co.uk> References: <21DC5E98AE1FD311B1290020AFDB6C6E6419@cx288885-b.okcs1.ok.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <21DC5E98AE1FD311B1290020AFDB6C6E6419@cx288885-b.okcs1.ok.home.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG river wrote: > I have been able to automail the contents of a file with the following > command line: > > mail -s 'TESTMAIL' user@mydomain.com < /tmp/file.to.send > > but of course this wont work with a tarball, I need to be able > to "attach" the file rather than its contents... > > I checked the man page for mail and it doesnt specify any swtich > for attaching a file.....is there a way to do this ? Quite a few ways... Sheldon's will work on a plain FreeBSD system, but some mail clients don't automatically decode uuencoded data as they do MIME (hardly a tragedy though, just a minor inconvenience). If you have Mutt installed you might use something like this: $ mutt -s 'TESTMAIL' -a /tmp/file.to.send user@mydomain.com