Thanks for the ideas David, Joel, Myles, Zoran! One thing I eventually figured out is that it's not so easy to just send an email from the command line. The normal solutions 'mail', 'mutt' etc. all presuppose that you have a full-house MTA running on the server. I don't want sendmail running on a simple LAN server and I'm putting off learning sendmail for as long as I can :-D
Anyway, I found a really simple solution in 'SendEmail' by these guys: http://caspian.dotconf.net/menu/Software/SendEmail/ It's a perl script that's fully self-contained and will talk smtp to fling an email at your ISP. All parameters spec'd on the command line. Works. Michael On Monday 04 February 2002 05:51 pm, Michael Hipp wrote: > I'm setting up a simple lan server for a client. It's behind a NAT router > so I can't actually do any remote admin. But I can at least keep track of > "how goes it" on the server with a simple script file that runs 1-2 times > per day and emails me the output of, say: > > df > ps -aux > free > tail --lines=50 /var/log/messages > dmesg > > Anything else that would be useful? > > What is the easiest way to send a simple text email from the command > line? > > Thanks, > Michael > _______________________________________________ > Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users > Subscribe/Unsubscribe info, Archives,and Digests are located at the above > URL. _______________________________________________ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.