Before I forget, and FYI (and/or so this can be changed in bcfg2, if
needed), I updated root's crontab (the one in
/var/spool/cron/crontabs/root) on scotty to fix a typo on the line
updating the lcrc netgroup. It had been:
10,40 * * * * /root/bin/update-lcrc-netgroup.sh > /dev/null > 2>&1
It is now:
10,40 * * * * /root/bin/update-lcrc-netgroup.sh > /dev/null 2>&1
Ie, I removed the extra ">" after /dev/null.
Also, while I was editing the file, I noticed the line before the lcrc
one was:
0 6,9,12,3,6 * * * /root/bin/update-ldap-groups.sh 2>&1 >/dev/null
This will redirect stdout only to /dev/null, while stderr will be
collected by cron and emailed to root. If it's desired to have both
stdout and stderr redirected to /dev/null, then the "2>&1" should
follow the >/dev/null, ie:
0 6,9,12,3,6 * * * /root/bin/update-ldap-groups.sh > /dev/null 2>&1
Since this is what is most commonly desired, I had changed this line
in the crontab too. Thinking about it more, though, you might actually
want to be emailed on errors when updating ldap groups but want to
ignore stdout, so I switched this line back to what it was before. If
you actually want to ignore stdout and stderr, then you'll need to
change this line so that the "2>&1" after the >/dev/null.
John