-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-10-13 at 16:09 -0700, Art Fore wrote:
I want to run cat/proc/mdstat as root as a cron job once a day and have it email the results to my work email account. Checked crontab -e, etc, but am still very confused. The MAILTO= seems to be only for a user.
If I do a crontab -e
MAILTO= "mylogon@comcast.net" 5 0 * * * cat /proc/mdstat
You'd better create a script that does exactly what you want, and set that script to be run from cron. The mailto setting affects every job defined, and by default (in suse settings) only sends something on errors.
Will this work? If not, how would I do it or is there any way to send all root email to a real email address? I remember seeing something about this in the installation, but can't find it anymore.
It's an alias.
Have also tried mail from the command line and it works to my real email address.
As long as your postfix/sendmail/qmail server is ok, it will work. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDTv7wtTMYHG2NR9URAhVVAJ9h7uBabN6m7EL5BOZexxd4RHpH1QCdEhrk Cqac0UIHd0KN1+JuMrNzKds= =BoCt -----END PGP SIGNATURE-----