On Fri, 7 Feb 2003 10:20:57 +1000 Perry, David J wrote:
> and in the .forward file I put my desktop email address like so: 
> [EMAIL PROTECTED]
> 
> Under Redhat 7.2 it worked like a charm.  I then installed Redhat 8.0
> and promptly broke it.  The output now goes to /var/spool/mail/david

Redhat doesn't appear to be respecting the .forward file.  Somebody who
knows Redhat better than I should be able to help figure out why.

> How do I get the email sent to the correct email address?  In the man
> pages it says " cron mails to the owner of crontab - or the user named
> in the  MAILTO environment variable in the crontab, if such exists. " 
>  I have tried changing the crontab entry to :
> 3,13,23,33,43,53  *  *  * [EMAIL PROTECTED] 
> $HOME/bin/itrust_monitor.sh to no avail.

In your setup, the MAILTO variable is only being defined as part of the
command cron is running.  It needs to be on a line of its own for cron
to recognise it, as so:

[EMAIL PROTECTED]
3-53/10 * * * * $HOME/bin/itrust_monitor.sh

3-53/10 is shorthand for "between 3 and 53 minutes past the hour, every
10 minutes", a neater way of specifying what you've got.  The crontab(5)
manpage has full syntax details.  It also has an example of using
MAILTO.

-- 
Pete
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to