can cron NOT send mail and still produce a log

From: Andy Cohen <Andy.Cohen_at_cognex.com>
Date: Wed, 08 Aug 2001 15:15:46 -0400

Hi,

We have a number of jobs that run from cron. We produce logs of these jobs
with the redirect (>) symbol. It appears that cron is also sending the
output to the mail account of the owner of the cron. I was told that if we
redirect output to /dev/null then we won't get the e-mail anymore but we
need to continue to produce the logs. Is there a way to have cron still
redirect its output to a file AND not send mail?

Here's an example of our syntax:

02,17,32,47 * * * * /home/oracle/check_db_link.sh >
/home/oracle/logs/check_db_link.log 2>&1

Thanks!
Andy

Andy Cohen
Database Systems Administrator
Cognex Corporation
1 Vision Drive
Natick, MA 01760
----------------------------------------------
e-mail: andy.cohen_at_cognex.com
 voice: 508-650-3079
  cell: 617-470-0034
   fax: 508-650-3337
Received on Wed Aug 08 2001 - 19:17:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT