problem in scheduling script using /etc/cron.d
hey
iam try to schedule my job in a file made in /etc/cron.d file as follows * * * * * tomcat6 /home/etika/Desktop/eka.sh /home/etika/Desktop/ea/etika.txt abc@gmail.com where eka.sh belongs to etika which is the root and etika.txt belong to tomcat6 this command is not running iam confused about the name of the owner written after the *'s please tell me whose name is written after the *'s(the schedule of the script) the owner of the script or the owner of the file which iam passing as an argument to the shell script |
Your script will run under tomcat6's permission. Take a look at /var/log/cron to see that.
Redirect the error to a file will help you debug easier: Code:
* * * * * tomcat6 /home/etika/Desktop/eka.sh /home/etika/Desktop/ea/etika.txt abc@gmail.com >> /tmp/eka.log 2>&1 |
thanks quanta ur code helped in debugging my script
|
All times are GMT -5. The time now is 11:51 PM. |