Hi, I have an account on a RedHat 4 server. I would like to have a cron job run at a certain time. In order to test it I made a simple script called cronTest.sh:
Code:
$ cat cronTest.sh
#!/bin/bash
touch /path/to/my/account/testpad/testComplete
touch /path/to/my/account/testpad/testCompleteAgain
touch /path/to/my/account/testpad/testComplete3
I put the following entry in crontab:
Code:
$ crontab -l
50 9 * * * /path/to/my/account/testpad/cronTest.sh
So, cronTest.sh should run at 9:50 every morning, and create three empty files in the 'testpad' directory. Unfortunately, at 9:50 I got the following system mail:
Code:
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/path/to/my/account>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=username>
X-Cron-Env: <USER=username>
/bin/sh: /path/to/my/account/testpad/cronTest.sh: Permission denied
Permissions of the testpad directory:
Code:
drwxrwxrwx 2 username games 2048 Aug 21 09:48 testpad
Permissions of cronTest.sh
Code:
-rwxrwxrwx 1 username games 228 Aug 21 09:34 cronTest.sh
Does anyone know what's going on? Is it something on my part, or should I contact my sysadmin? Thanks for any help!