[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Silent Cron Jobs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Curt Howland wrote:
| Hi.
|
| I tried to whip up a small cron job, I put a short script
| in /etc/cron.daily thinking that this would work.
|
| Well, yes, it works, but I get mail sent to me by cron explaining that
| the job executed successfully.
|
| I'd prefer not to get the mail. I don't get mail for any of the other
| jobs in cron.daily, and I don't understand enough of bash scripting
| to see how mine is different from the others.
|
| If all else fails I could just add a line to /etc/crontab, but I think
| the Debian way is so very much better coordinated and elegant.
|
| Curt-
|

I send the output of such cron jobs to /dev/null.

that is

~ > /dev/null 2>&1


- --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6tcsu4tRirKTPYwRAuOGAJ9g3Xc6fZWKzZy4o+pifO4KzilX0ACeMdE1
6UygOGX97U2j1twC9t2fkMk=
=Tn4i
-----END PGP SIGNATURE-----


Reply to: