Linux-Noob Forums
Cron Not Regular - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: Cron Not Regular (/thread-1387.html)



Cron Not Regular - lee101 - 2007-05-16


Hi,

I'm posting here with yet another one of my problems, being cron. For some reason I cannot get it to work, below is what I have setup (through crontab -e)



Code:
# m h  dom mon dow   command
0 19 * * *  "/media/hdd/backup/Web Server/webserverbackup.sh"




Which runs a script to backup my web server, although I cannot figure out why, but it doesn't want to run it. The date is setup correctly. and I'm struggling to think of any other problems. Could anyone point me into the right direction with this?

 

Thanks,

Lee :)




Cron Not Regular - znx - 2007-05-16


Heya, um two things that I would do. First do this, it will make sure you script is executable.



Code:
chmod +x /media/hdd/backup/Web\ Server/webserverbackup.sh




 

Then I wouldn't use " " inside the crontab (I honestly don't know if it works or not that way).

 



Code:
0 19 * * * /media/hdd/backup/Web\ Server/webserverbackup.sh




 

Try that, see how it goes, remember to check your e-mail and logs to see if any errors occurred.