I have bash script and I put in the crontab. It runs every 10 minutes. When I run it manually, it gives perfect results. It creates “.tmp” files and these “.tmp” files are not empty, but Crontab results are not as I expected. it only creates “.tmp” files. Contents of “.tmp” files are empty. In this computer there more than
Tag: cron
Need to run cron job for my php file on hosting server [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I have php file on my linux hosting server and i want to execute it 2 times a day. Below is my link of my
Compare A Variable Regularaly Using Linux Scripts and Cron
I’m trying to check if a number differs from what it was last time it was checked, in this case checking a number every minute, using Linux scripts and cron. eg: But the problem I am having is that the variables aren’t accessible between scripts and using source (eg. source script.sh) runs the script again, hence getting the latest version,
Cronjob is not running in Linux
So I am trying to automate backups to S3 buckets through linux. The script I am trying to run is The cronjob to run that script is 44 11 * * * ./backup.sh However whenever I try to run the backup script (by updating cronjob) it does not seem to be working at all. Any ideas why it will not
crontab (cronie), run certain days of the month
I want to make a crontab entry which will run on every weekday except the 1st, 2nd, and 3rd of each month. Here’s what I have: I thought that this had the following meaning: That is what I read in the crontab(5) manual page. However, I can see that the job ran at 08:45 today, Monday 2nd October. I am
ack outputs nothing using crontab in linux
ack outputs nothing using crontab in linux. In the crontab file (edited with sudo crontab -e): And cat /ext/test110.sh will show After cron, there are 1.t and 2.t in /ext cat 2.t will output /usr/bin/ack; However, nothing in 1.t. If I run ack “localhost” /etc/hosts > /ext/3.t in bash (4.3.30) or sh directly, it will output: 127.0.0.1 localhost It seems
ssh cronjob delete not working
I am new to SSH & cronjobs so probably I am doing something wrong. I am using a Google Cloud Engine for hosting my SSH Linux instance and I want to delete a snapshot by its name with a cronjob (I have also a create snapshot cronjob that works fine). So I wrote this script: This script should delete the
Running script in crontab–reboot: command not found
I’ve set a script in my root crontab that is supposed to restart my machine with the reboot command. However, I am getting a reboot: command not found despite the fact that reboot is in the root user’s path. My script: root user crontab: …yes, this is only a temporary workaround while I figure out why the internet keeps dropping.
Invoke a Bash Script and End , Instead of Restarting again
I am running a Bash Script via Cron Job on my server and i need to invoke and end it self. Script : I need it to not reset on its own i will call the script thru cron when ever I want. Thanks Answer When you call it with cron, cron must take care of the looping. Remove the
Using linux’ at command – scheduling daily / weekly possible?
I recently came across the at command on the command line, but I am wondering whether I can write a bash script that somehow enables me to tell the at command to run at 8 pm every day, or every monday, every week etc. basically at regular intervals. How is this possible? Answer at is the wrong tool for this