Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Cron reporting root command not found

Cron reporting root command not found

2007-06-20       - By d.qureshi@(protected)

 Back
Reply:     1     2     3     4  

When I do crontab -l it displays this below:-

[root]# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.8354 installed on Thu Jun  7 12:24:34 2007)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp
$)
# 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
# Cron job to track current date, memory usage and running processes
#0-59/10 * * * * /root/memmon.sh >> /root/memmon.log
[root]#
[root]#
[root]#

When I look at /etc/crontab it displays this below:-

[root]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
[root]#

Does this give you a more details why I am getting a problem with cron?


On Wed, 20 Jun 2007 09:22:20 -0500 David.Knight@(protected) wrote:
> What crontab is it in? if you do a crontab -l    is it there? or is it in
> the /etc/crontab?
>
> Cron.daily will want a user to run the command, I.E:
> 01 * * * * root run-parts /etc/cron.hourly
>
> Above root is the user to run the command, run-parts is the command and
> /etc/cron.hourly is the option to the run-parts command.
> However if you used crontab -e to edit the crontab, the crontab file will
> be in /var/spool/cron/    (Unix style)...  This crontab does not want the
> user. it uses a user before the command. It manages a crontab per user...
> I.E.:
> [root@(protected) cron]# pwd
> /var/spool/cron
> [root@(protected) cron]# ls -l
> total 8
> -rw-- ----    1 root     root           54 Aug 29  2006 root
> [root@(protected) cron]# cat root
> 00 5 * * * /root/dr/dr.backup.ksh
>
> Hope this helps,
> David Knight
>
> d.qureshi@(protected)
> Sent by: taroon-list-bounces@(protected)
> 06/20/2007 09:12 AM
> Please respond to
> "Discussion of Red Hat Enterprise Linux 3 (Taroon)"
> <taroon-list@(protected)>
>
> To
> TAROON-LIST@(protected)
> cc
>
> Subject
> Cron reporting root command not found
>
> I keep on getting this mail sent by logcheck about cron
>
> From:  (Cron Daemon)
> To: root
> Subject: Cron <root@> 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>
> Status: O
>
> /bin/sh: line 1: root: command not found
>
> I don' t really understand why cron is mailing this to root?
>
> Can anyone help me why cron is complaining to root about line 1 and how
> do I correct?
>
> --
> Taroon-list mailing list
> Taroon-list@(protected)
> https://www.redhat.com/mailman/listinfo/taroon-list
>

--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list