Skip to content
Advertisement

Tag: cron

Bash Script Unstable Result

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

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

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.

Advertisement