Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Default Cron <root@server> root run-parts /etc/cron.hourly

    Hello All,

    8.5.3-STABLE_3
    Redhat 7.3

    I am receiving lots of Emails Everyday from the server :

    -----Email---------------------------
    From: "Cron Daemon" <root@server.xxxxxxx.com>
    To: <root@server.xxxxxxx.com>
    Sent: Friday, November 28, 2003 4:01 PM
    Subject: Cron <root@server> root run-parts /etc/cron.hourly


    > /bin/bash: root: command not found
    >
    >
    >

    Here is my crontab file :
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/scripts/.crontab installed on Fri Nov 28 03:39:02 2003)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

    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
    30 * * * * php /home/xxxxxxx/www/upload/sc/serv_cron.php > /dev/null
    39 3 * * * /scripts/upcp
    0 6 * * * /scripts/cleanmsglog > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim callout > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim retry > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim reject > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim wait-remote_smtp > /dev/null 2<&1
    01 * * * * php /home/xxxxxxx/www/hourly_cron.php >/dev/null 2>&1
    02 4 * * * php /home/xxxxxxx/www/daily_cron.php >/dev/null 2>&1
    42 4 1 * * php /home/xxxxxxx/www/monthly_cron.php >/dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

    and here is the Logs :

    Nov 28 00:00:00 server CROND[6916]: (root) CMD (/usr/lib/sa/sa1 1 1)
    Nov 28 00:00:00 server CROND[6917]: (root) CMD (/usr/local/cpanel/bin/dcpumon >/dev/null 2>&1)
    Nov 28 00:01:00 server CROND[6960]: (root) CMD (run-parts /etc/cron.hourly)
    Nov 28 00:01:01 server CROND[6962]: (root) CMD (root run-parts /etc/cron.hourly)

    WHY THERE ARE TWO ENTRIES FOR /etc/cron.hourly ONE WITH
    root and one WITHOUT root.

    Any Help will be appreciated.

    Thanks in Advance.
    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

  2. #2
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Cron <root@server> root run-parts /etc/cron.hourly

    Originally posted by vishal
    Hello All,

    8.5.3-STABLE_3
    Redhat 7.3

    I am receiving lots of Emails Everyday from the server :

    -----Email---------------------------
    From: "Cron Daemon" <root@server.xxxxxxx.com>
    To: <root@server.xxxxxxx.com>
    Sent: Friday, November 28, 2003 4:01 PM
    Subject: Cron <root@server> root run-parts /etc/cron.hourly


    > /bin/bash: root: command not found
    >
    >
    >

    Here is my crontab file :
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/scripts/.crontab installed on Fri Nov 28 03:39:02 2003)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/

    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
    30 * * * * php /home/xxxxxxx/www/upload/sc/serv_cron.php > /dev/null
    39 3 * * * /scripts/upcp
    0 6 * * * /scripts/cleanmsglog > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim callout > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim retry > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim reject > /dev/null 2<&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim wait-remote_smtp > /dev/null 2<&1
    01 * * * * php /home/xxxxxxx/www/hourly_cron.php >/dev/null 2>&1
    02 4 * * * php /home/xxxxxxx/www/daily_cron.php >/dev/null 2>&1
    42 4 1 * * php /home/xxxxxxx/www/monthly_cron.php >/dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

    and here is the Logs :

    Nov 28 00:00:00 server CROND[6916]: (root) CMD (/usr/lib/sa/sa1 1 1)
    Nov 28 00:00:00 server CROND[6917]: (root) CMD (/usr/local/cpanel/bin/dcpumon >/dev/null 2>&1)
    Nov 28 00:01:00 server CROND[6960]: (root) CMD (run-parts /etc/cron.hourly)
    Nov 28 00:01:01 server CROND[6962]: (root) CMD (root run-parts /etc/cron.hourly)

    WHY THERE ARE TWO ENTRIES FOR /etc/cron.hourly ONE WITH
    root and one WITHOUT root.

    Any Help will be appreciated.

    Thanks in Advance.
    try removing these lines from the top and restart crond

    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  3. #3
    Member vishal's Avatar
    Join Date
    Jan 2003
    Location
    India
    Posts
    343

    Default Re: Re: Cron <root@server> root run-parts /etc/cron.hourly

    Originally posted by anand
    try removing these lines from the top and restart crond

    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/
    Thanks for the Reply !!!
    I have followed your Instructions, can u please breif on removing the Variables from the crontab file ?

    I have the same crontab file on all the servers but never received such emails .

    This is so Strange...........

    Also your above fix will never mail ROOT for the completion of any job if needed right ?

    Anyways i thank u again for the help
    rh_linuxion

    It is very simple to be Happy but it is very difficult to be Simple.

  4. #4
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Re: Re: Cron <root@server> root run-parts /etc/cron.hourly

    Originally posted by vishal
    Thanks for the Reply !!!
    I have followed your Instructions, can u please breif on removing the Variables from the crontab file ?

    I have the same crontab file on all the servers but never received such emails .

    This is so Strange...........

    Also your above fix will never mail ROOT for the completion of any job if needed right ?

    Anyways i thank u again for the help
    I had the same probs on a one server of my customer, all i did was remove those lines and it was working fine.

    Do the following:

    crontab -e

    Just remove those lines.
    Save and exit.

    /etc/rc.d/init.d/crond restart

    Now check if you get the same error. It shouldn't do that.

    The root will still get mails from cron when its required. I get mails from 15 servers every day, so don't worry.

    Do let me know if this doesn;t work for you.
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  5. #5
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    did it work for you ??
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  6. #6
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Re: Re: Cron <root@server> root run-parts /etc/cron.hourly

    Originally posted by vishal
    Thanks for the Reply !!!
    I have followed your Instructions, can u please breif on removing the Variables from the crontab file ?
    My guess is i unneccessarily gave all details of removing those tags from crontab when you all you wanted to know a brief of removing those variables ? ;-) sorry bro about the mixup.

    I have no clues on these variables frankly, i don't use them on any of my servers, never find them useful to be used for anything. Perhaps anyone else can shed some light on this matter.

    Anyways till the time it solves the probs, its k with me.
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

Similar Threads & Tags
Similar threads

  1. Cron <root@xxx> run-parts /etc/cron.hourly
    By mmarch in forum New User Questions
    Replies: 0
    Last Post: 03-31-2009, 11:45 PM
  2. Replies: 2
    Last Post: 07-04-2007, 08:12 AM
  3. Cron run-parts /etc/cron.daily
    By Nitro in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-26-2006, 10:31 AM
  4. root run-parts /etc/cron.hourly -- Hourly error messages!
    By n1zyy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2004, 04:23 PM
  5. Cron <@ls05> run-parts /etc/cron.daily
    By GeekPatrolMille in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-17-2004, 02:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube