Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron job issue

Discussion in 'General Discussion' started by swhit, Apr 3, 2009.

  1. swhit

    swhit Registered

    Apr 3, 2009
    Likes Received:
    Trophy Points:
    So I have been trying to get this cron job to work for a while now, pretty much just a cron to backup our database. The cron from command line works fine, but when we enter the cron into the cpanel crons job section we get an email saying that there has been an error.

    This is our command;
    cd /home/me/backups; /usr/bin/mysqldump -uDBUSER -pDBPASS DBNAME > mysqlbackup_`date +%m%d%y`.sql

    This is the email we get when the cron is ran through cpanel;

    /bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
    /bin/sh: -c: line 1: syntax error: unexpected end of file

    Again, the cron job runs fine through command line. Any input would be appreciated.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice