OVH Community, your new community space.

cron Jobs and plesk


EppyAndy
20-02-2009, 21:14
cheers for all the replies.

I now have it working

derchris
19-02-2009, 19:03
also make sure that you use full paths in the script as well

freshwire
19-02-2009, 16:53
I notice you say you use: ./daily.sh

I would recommend using the full path for the cron job.

You can do also: /path/to/daily.sh &> /path/to/output_file

This way all output will be logged to the file. If the file doesnt get create the script obviously didnt even run.

Also try setting up root mail to forward to your own mail box.

Myatu
19-02-2009, 15:20
At the time your cron job is supposed to run, it'll put in an entry into /var/log/syslog - check to see if it's actually there. Example from my log:

Code:
Feb 19 00:00:01 nsxxxxxx /USR/SBIN/CRON[32078]: (root) CMD (oinkmaster -o /etc/$
(I've created that from my root account, so it runs as root...) Subsequent errors related to the cron are then likely to be found in the same /var/log/syslog

EppyAndy
19-02-2009, 11:40
I have written a script daily.sh to backup my sql database and ftp them over to another server

when executed manually ./daily.sh this works fine, but the cron refuses to execute. Have checked the log file and no errors appear to be showing

Anyone any suggestions pls

Many thanks