The following is showing up in root's mail box every 10 minutes:
Message 1: From root@solaria.ksc.nasa.gov Thu Jul 29 07:00:02 2004 Date: Thu, 29 Jul 2004 07:00:01 -0400 From: root@solaria.ksc.nasa.gov (Cron Daemon) To: root@solaria.ksc.nasa.gov Subject: Cron root@solaria root /usr/lib/sa/sa1 1 1 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root>
/bin/sh: line 1: root: command not found
This is apparently from the sysstat job found in /etc/cron.d:
# run system activity accounting tool every 10 minutes */10 * * * * root /usr/lib/sa/sa1 1 1 # generate a daily summary of process accounting at 23:53 53 23 * * * root /usr/lib/sa/sa2 -A
What does the "root" parameter do (or not do)? It looks like crond was updated on 26 July.
Bob...
Am Fr, den 30.07.2004 schrieb Bob Chiodini um 12:40:
The following is showing up in root's mail box every 10 minutes:
/bin/sh: line 1: root: command not found
This is apparently from the sysstat job found in /etc/cron.d:
# run system activity accounting tool every 10 minutes */10 * * * * root /usr/lib/sa/sa1 1 1 # generate a daily summary of process accounting at 23:53 53 23 * * * root /usr/lib/sa/sa2 -A
What does the "root" parameter do (or not do)? It looks like crond was updated on 26 July.
It sets that the cronjob is running as user root.
Bob...
Check that you do not have such a line in any /var/spool/cron/$USER file.
Alexander
On Fri, 2004-07-30 at 19:13, Alexander Dalloz wrote:
Am Fr, den 30.07.2004 schrieb Bob Chiodini um 12:40:
The following is showing up in root's mail box every 10 minutes:
/bin/sh: line 1: root: command not found
This is apparently from the sysstat job found in /etc/cron.d:
# run system activity accounting tool every 10 minutes */10 * * * * root /usr/lib/sa/sa1 1 1 # generate a daily summary of process accounting at 23:53 53 23 * * * root /usr/lib/sa/sa2 -A
What does the "root" parameter do (or not do)? It looks like crond was updated on 26 July.
It sets that the cronjob is running as user root.
Bob...
Check that you do not have such a line in any /var/spool/cron/$USER file.
Alexander
Thanks for the information.
There was an update to crond that, per the changelog fixed the user field, the sixth field in the crontab file.
* Wed Jul 28 2004 Jason Vas Dias jvdias@redhat.com - 4.1-3
- Fixed bug 128701: cron fails to parse user 6th field in - system crontabs (patch15)
Bob...