Re: How to stop a cron job sending email
- From: Johann Spies <jspies@xxxxxxxxx>
- Date: Fri, 31 Oct 2008 14:16:45 +0200
On Fri, Oct 31, 2008 at 10:02:27PM +1100, Karl Auer wrote:
How about letting us see one of those emails?
It is just the output of the command.
I'm not familiar with that syntax ("&>"). If it's legal bash syntax, it
could be that it is one of the syntax subtleties NOT supported by dash,
the new /bin/sh shell.
I did not realise that it is a 'bashism'.
If the cron output in the emails is truly innocent, and not a symptom of
some deeper problem, you could try the more standard syntax for
redirecting stdout and stderr to null and see if that helps:
killall fetchmail > /dev/null 2>&1
/usr/bin/fetchmail > /dev/null 2>&1
I'm curious though - why on earth are you killing and restarting
fetchmail every five minutes?!?
I collect mail (by imap) every 5 minutes. It happened in the past
due to a slow network connection that the previous process did not
finish in 5 minutes.
Regards
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"Bless the LORD, O my soul, and forget not all his
benefits: Who forgiveth all thine iniquities; who
healeth all thy diseases; Who redeemeth thy life from
destruction; who crowneth thee with lovingkindness and
tender mercies; Who satisfieth thy mouth with good
things; so that thy youth is renewed like the
eagle's." Psalms 103:2-5
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: How to stop a cron job sending email
- From: Avi Greenbury
- Re: How to stop a cron job sending email
- References:
- How to stop a cron job sending email
- From: Johann Spies
- Re: How to stop a cron job sending email
- From: Karl Auer
- How to stop a cron job sending email
- Prev by Date: Re: How to stop a cron job sending email
- Next by Date: Re: How to stop a cron job sending email
- Previous by thread: Re: How to stop a cron job sending email
- Next by thread: Re: How to stop a cron job sending email
- Index(es):