Hi folks, I am new into working on UNIX. I wanted to run a .sh script daily(say at 10 AM). I came to know about setting a cron job for this. I did go through the tutorial on how to add a cron job. This is what i did:
vi update.cron
MAILTO="myid@yahoo.com"
0 10 * * * somescript.sh >>/dev/null 2>&1
then saved the file.
then i did,
crontab update.cron.
question is :
1. will this work from any directory, which i'll be working in or i need to go to a specific directory?
2.when i execute crontab -l it does lists the added job but at the stipulated time the script/cron job does not run.Is there any other format or updation in any file that i should be doing.
Thanks a lot in advance.