The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron errors after edit

Discussion in 'General Discussion' started by verdon, Oct 26, 2005.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi :)

    I recently added an entry to my crontab by logging in shell, doing crontab -e and adding a line, saving and exiting. Shell reported succesful update of crontab, however... it looks like all my crons are failing, at least I'm getting many e-mails along these lines

    Subject: Cron <root@rhythm> /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    /bin/sh: line 1: 1
    : ambiguous redirect

    Subject: Cron <root@rhythm> /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    /bin/sh: line 1: 1
    : ambiguous redirect

    Subject: Cron <root@rhythm> /usr/local/bandmin/bandmin
    /bin/sh: line 1: /usr/local/bandmin/bandmin
    : No such file or directory


    If I do a crontab -l I am returned...

    9 0 * * * /usr/bin/yum -y update >/dev/null 2>&1
    */15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    30 5 * * * /usr/local/bin/rkhunter -c --cronjob
    15 1 * * * /scripts/upcp
    0 1 * * * /scripts/cpbackup
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    * 4 * * 0,1,3,5 /scripts/ftpbackup.sh

    The last line is the new one.

    Any thoughts?

    PS. I have checked and the stuff cron can't find is there..
     
  2. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Solved I think...

    My default editor for crontab is nano. When you write and exit with nano it offers you the choice of saving as DOS or Mac. I chose DOS. Re-editing the file and writing out as Mac seems to have fixed things... who'd have thunk ;)
     
Loading...

Share This Page