LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in scheduling script using /etc/cron.d (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-scheduling-script-using-etc-cron-d-867828/)

etika 03-10-2011 08:19 PM

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

quanta 03-10-2011 08:27 PM

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

etika 03-16-2011 08:39 AM

thanks quanta ur code helped in debugging my script


All times are GMT -5. The time now is 11:51 PM.