I have a cron job which unzips a file and executes it. The cron is set to unzip, execute and delete the .zip file after. It's executing fine but it's not deleting the file.
Dear all,
i am executing the script.
with help of cron job but it is not executing in cron job.
i check owner and chmod and create the file and execute manually it is working fine but in cron job i set below
Crontab -e
8 14 * * * /home/tplinux/webapp/tpadminhost/collect_ejxml/ejrename.sh
wq!
Hello.
I know there's at least 4 other threads related to this here.
In the .profile file of the root user I have defined a function, e.g.
function printDate() {
date
}
I want to run this function every minute and append the output to cron.log. I tried adding the following crontab entry:
* * * * * printDate > $HOME/cron.log 2>&1
But it doesn't work. The cron.log file gets created, but it's empty.
When I run a script manually using root it is working fine. when I execute the same script inside cron it is not running. I checked the cron is actually calling the script but the script is not executing. I exported the output of echos in the script to the text file but the text file is didn't logged anything.
I have created a Shell Script as below
Sample.sh
echo "Hi there"
I also added cron job in cron tab which is under /etc/crontab as below
* * * * * /home/Sample.sh > /home/Sample.txt
I have created the Sample.txt file in /home/ directory.
I have also checked the permission for read and write for both the file
When I execute the Sample.sh file it works fine.it writes in Sample.txt file
If I scp a cron file into /etc/cron.d it doesn't run unless I edit the file and change the command. Then crond seems to pick up the cron file.
How can I make cron reload its cron files in ubuntu 10.04? 'touch'ing the file doesn't work nor does 'restart cron' or 'reload cron'.
My cron file is set to run every minute and logs to a file.
How can I set up a php script to run via cron
I've created a file in the cron.d folder with the username as the file name:
/etc/cron.d/username
Inside of username file I placed the following cron command
0,30 * * * * username /home/username/public_html/cron.php
I'm actually trying to get the cron working for Open Atrium however upon checking Open Atrium status it shows no signs of the cr
I have a script that works when I run it from the command line, but when I schedule it with cron I get errors that it cannot find files or commands. My questions is two fold:
When I schedule a cron job by using crontab -e does it use my user ID as the basis for it's permissions?