Results 1 to 3 of 3
Hi, I have created a cron job using gnome-schedule in fedora 13 server to get backups of the mysql database. but the thing is the sh file runs when execute ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-23-2011 #1
Cron job doesn't work
I have created a cron job using gnome-schedule in fedora 13 server to get backups of the mysql database.
but the thing is the sh file runs when execute it manually; but when it is run through the gnome-schedule program or editing the crontab file using 'crontab -e' command it doesn't ??????
the same thing I did for another fedora 13 server some time ago and it runs perfectly
I did every thing that I can ( allowing cron related options in SE Linux etc)
the sh file resides in the home folder /home/user1/backup.sh and is given chmod +x permission
help is greatly appreciated
- 08-23-2011 #2
- Join Date
- May 2011
Show the contents of this command, so we can see exactly what cron is trying to run:
It is usually very helpful to redirect the output of your cronjob to a temporary log file, e.g.:
* * * * * /home/user/script.sh > /tmp/script.log 2>&1
- 08-24-2011 #3
Thanks so much for your reply. when I execute crontab -l command I got the following results
0 15 * * * /home/user1/backup.sh # JOB_ID_1
finally I tried Webmin it is working fine with Webmin. the latest crontab -l output which work in the normal user account(in webmin) as follows
5,22 14 * * * /home/user1/backup.sh #BackupJob
Last edited by amithad; 08-25-2011 at 05:25 AM.