Re: How to stop a cron job sending email



If you want to complete disable mails from cron, add the following at
the top of the crontab-
MAILTO=""

2008/10/31 Johann Spies <jspies@xxxxxxxxx>:
The same user crontabs (that run every 5 minutes) that were used on my
old computer (Debian) now (on Ubuntu Hardy) produce an email for
every run.


Here is an example of one of them:

# m h dom mon dow command
0-59/5 * * * * /usr/local/bin/krypos

$ cat /usr/local/bin/krypos
#!/bin/sh
killall fetchmail &> /dev/null
/usr/bin/fetchmail &> /dev/null

I have also tried

0-59/5 * * * * /usr/local/bin/krypos &> /dev/null

But I still get the email every 5 minutes.

That did not happen on my old computer.

How do I stop this?

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




--
Sambit Bikas Pal
MS 3rd Year
Indian Institute Of Science Education & Research Kolkata,
HC 7, Sector-III Salt Lake, Kolkata-700106
Web: http://www.botcyb.org
OpenPGP Key: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x8E57F8B897D372B3

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Debian - ATI Radeon 9000 - Error: no screens found
    ... install X 4.3 or Xorg from whatever source you'd normally ... Note that one of the best ways of doing that may be to upgrade to Debian ... Debian Testing sounds like it's not that safe for use, ... thy successors will not thank thee for it, but rather shall revile thy works ...
    (comp.os.linux.x)
  • How to stop a cron job sending email
    ... The same user crontabs that were used on my ... old computer (Debian) now (on Ubuntu Hardy) produce an email for ... healeth all thy diseases; ...
    (Ubuntu)
  • Re: How to stop a cron job sending email
    ... old computer now (on Ubuntu Hardy) produce an email for ... # m h dom mon dow command ... healeth all thy diseases; ...
    (Ubuntu)
  • Re: How to stop a cron job sending email
    ... old computer now (on Ubuntu Hardy) produce an email for ... # m h dom mon dow command ... healeth all thy diseases; ...
    (Ubuntu)