Cron wont run my shell script
I have a shell script that runs fine manually, but wont run if I try to schedule using cron or Kcron. I would like to have it run every day at 5.30pm.
by command line it runs using
using cron as su I have
30 17 * * 1,2,3,4,5 /bin/sh /data/archive.sh
I have read through several posts on this and I have tried not renaming the file so it doesn't have the .sh extension, and I have checked that the permission are executable.
We are using redhat enterprise edition
Strangely I have another task scheduled that clears the contents of a folder once a week. This one works, but not every week!
0 23 * * 7 /bin/rm /data/temp/
So question is am I setting it up wrong and if not why doesn't it work? I'm kinda new to linux, so please let me know if there is a better way to schedule this task