Hi All,
I have created a sh script for an alaram purpose...
Below is my script content
home@home-localdomain:~/Documents/alaram$ pwd
/home/home/Documents/alaram
home@home-localdomain:~/Documents/alaram$ ls -l
total 4912
-rwxr-xr-x 1 home home 0 2011-10-05 00:28 alaram.log
-rwxr-xr-x 1 home home 49 2011-10-05 00:44 alaram.sh
-rwxr-xr-x 1 home home 5011584 2011-09-30 20:45 bg.mp3
home@home-localdomain:~/Documents/alaram$ cat alaram.sh
/usr/bin/vlc /home/home/Documents/alaram/bg.mp3
The script is working fine when it been executed manually ... where as the same script is not running automatically from the crontab
Below is my crontab entry for the same
15 5 * * * /bin/sh /home/home/Documents/alaram/alaram.sh >>/home/home/Documents/alaram/alaram.log
Please let me know if there is any specific file permission which need to grant to the script to make it run automatically from the crontab...
Thanks
I have created a sh script for an alaram purpose...
Below is my script content
home@home-localdomain:~/Documents/alaram$ pwd
/home/home/Documents/alaram
home@home-localdomain:~/Documents/alaram$ ls -l
total 4912
-rwxr-xr-x 1 home home 0 2011-10-05 00:28 alaram.log
-rwxr-xr-x 1 home home 49 2011-10-05 00:44 alaram.sh
-rwxr-xr-x 1 home home 5011584 2011-09-30 20:45 bg.mp3
home@home-localdomain:~/Documents/alaram$ cat alaram.sh
/usr/bin/vlc /home/home/Documents/alaram/bg.mp3
The script is working fine when it been executed manually ... where as the same script is not running automatically from the crontab
Below is my crontab entry for the same
15 5 * * * /bin/sh /home/home/Documents/alaram/alaram.sh >>/home/home/Documents/alaram/alaram.log
Please let me know if there is any specific file permission which need to grant to the script to make it run automatically from the crontab...
Thanks
Comment