[PLUG] Suppressing shell script output to screen

Robert Citek robert.citek at gmail.com
Tue Sep 19 22:21:01 UTC 2017


On Tue, Sep 19, 2017 at 3:17 PM, Robert Citek <robert.citek at gmail.com> wrote:
> Cron will e-mail them to the root account by default.

Correction: to the account running the cron.  Of course, if the user
is root, then output goes to the root account. (thanks, Brooks).

$ man cron | grep -A2 mailed
       cron  then  wakes up every minute, examining all stored
crontabs, checking each command to see if it should be run in the
current minute.  When executing commands, any output is mailed to the
owner
       of the crontab (or to the user named in the MAILTO environment
variable in the crontab, if such exists).  The children copies of cron
running these processes have their name coerced  to  uppercase,
       as will be seen in the syslog and ps output.

Regards,
- Robert



More information about the PLUG mailing list