Date: Thu, 23 Sep 1999 19:54:18 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: river <river@theriver.nu> Cc: questions@freebsd.org Subject: Re: Automailing a file fron cron Message-ID: <19990923195418.A27502@lithium.scientia.demon.co.uk> In-Reply-To: <21DC5E98AE1FD311B1290020AFDB6C6E6419@cx288885-b.okcs1.ok.home.com> References: <21DC5E98AE1FD311B1290020AFDB6C6E6419@cx288885-b.okcs1.ok.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 </dev/null If you don't have Mutt, use one of the other methods, but this is what I used last time I had to do this. (You can probably do this with other mail clients, too.) -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk 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?19990923195418.A27502>