Re: Poor Man's Remote Admin
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.
Re: Poor Man's Remote Admin
On Monday 04 February 2002 06:25 pm, David A. Bandel wrote: > Look around for something called "dailyscript". I still have it (and > have customized it heavily, so it probably won't work for you). I just > mash it around a bit for each distro/release. Wouldn't be without it. Thanks. I'll check out DailyScript. In looking for DS, I came across LogWatch that the author claims is better'n DS. Might be worth a look: http://www.kaybee.org/~kirk/html/linux.html Michael ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: Poor Man's Remote Admin
On Feb 4 David A. Bandel was heard saying: ->On Mon, 04 Feb 2002 17:51:45 -0600 ->begin Michael Hipp <[EMAIL PROTECTED]> spewed forth: -> ->> What is the easiest way to send a simple text email from the command ->> line? *** Is this related to geting information from your server that's behind NAT? In that case make a script which will write the output of what you want to see in a a text file and mail it with: #!/bin/bash echo "=> df output <=" > /tmp/output.txt df >> /tmp/output.txt echo "=> ps output <=" >> /tmp/output.txt (=> etc...) ps -aux >> /tmp/output.txt free >> /tmp/output.txt tail --lines=50 /var/log/messages >> /tmp/output.txt dmesg >> /tmp/output.txt mail -s "Info my clients server" [EMAIL PROTECTED] < /tmp/output.txt This is just to get you going, I spent 0 sec. testing it... ;-) Cheers, Zoran. -- If you find me, please return me to my $HOME: my address is 'cd'. ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: Poor Man's Remote Admin
On Mon, 4 Feb 2002 19:25:07 -0500 "David A. Bandel" <[EMAIL PROTECTED]> wrote: > Look around for something called "dailyscript". I still have it (and > have customized it heavily, so it probably won't work for you). I > just mash it around a bit for each distro/release. Wouldn't be > without it. found it here... http://speakeasy.rpmfind.net/linux/rpm2html/search.php?query=dailyscript -- Myles Green Calgary AB Canada Alberta Linux Step by Step Mirror: http://mylesg.homelinux.net/ -- PROGRAM - n. A magic spell cast over a computer allowing it to turn one's input into error messages. v. tr.- To engage in a pastime similar to banging one's head against a wall, but with fewer opportunities for reward. ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: Poor Man's Remote Admin
I use mutt for email attachments. I haven't found the option to attach things with "mail." so: echo This is your message in the letter body sent `date` | mutt -s Update -a FileToAttach YourAddress > What is the easiest way to send a simple text email from the command line? > ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: Poor Man's Remote Admin
On Mon, 04 Feb 2002 17:51:45 -0600 begin Michael Hipp <[EMAIL PROTECTED]> spewed forth: > 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? > Look around for something called "dailyscript". I still have it (and have customized it heavily, so it probably won't work for you). I just mash it around a bit for each distro/release. Wouldn't be without it. Ciao, David A. Bandel -- Focus on the dream, not the competition. -- Nemesis Racing Team motto Internet (H323) phone: 206.28.187.30 ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Poor Man's Remote Admin
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.