On Sun, 29 May 2005, Timothy Omer wrote:
On Sun, May 29, 2005 at 07:24:46PM +0100, Timothy Omer said:
> Thank you for your response Damian, I should have been clearer - the email
> needs to be sent to an external address.
I don't know about your implementation of cron, but mine supports the
MAILTO environment variable for exactly this sort of thing.
I don't seem to have MAILTO on my system (CentOS 4).
Yes, you do. It's a variable you set in your crontab, not a command.
You can read all about it:
man 5 crontab
Alternatively, you could set an alias to point root mail to
[EMAIL PROTECTED], which might be useful for other purposes. All
depends on what you need.
I'm not certain the MAILTO construct will work to send the output of
different commands to different users, or if it's set for the entire
crontab. (It will probably work, I just haven't tried it personally.)
Damian Menscher
--
-=#| Physics Grad Student & SysAdmin @ U Illinois Urbana-Champaign |#=-
-=#| 488 LLP, 1110 W. Green St, Urbana, IL 61801 Ofc:(217)333-0038 |#=-
-=#| 4602 Beckman, VMIL/MS, Imaging Technology Group:(217)244-3074 |#=-
-=#| <[EMAIL PROTECTED]> www.uiuc.edu/~menscher/ Fax:(217)333-9819 |#=-
-=#| The above opinions are not necessarily those of my employers. |#=-
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html