Ubuntu – How to launch sh script with crontab?
I have sh script that works perfectly if you launch it by yourself. But when I try to put it to the crontab nothing happens. My cron schedule expressions is 21 20 * * * bash a.sh And this sh…
I have sh script that works perfectly if you launch it by yourself. But when I try to put it to the crontab nothing happens. My cron schedule expressions is 21 20 * * * bash a.sh And this sh…
I'm trying to get cron expression to trigger an event at 7:45 UTC on only working days -- Monday to Friday. 45 7 * * MON,TUE,WED,THU,FRI * 45 7 * * 1,2,3,4,5 * Although the above expressions were supposed to…
I've been trying to set cron up within a Docker container. It is now working fine. What I want now is a log file. This is my crontab: * * * * * python /code/data_etl.py > /proc/1/fd/1 2> /proc/1/fd/2 My…
I'm using Namecheap Hosting. And my files are in a subdomain. I've added a task scheduler in Kernel.php file and add cron jobs in hosting. But it's not working. When I manually run schedule command it works perfectly. Can anyone…
I have implemented a selenium script in Python to upload some pictures and content to Facebook, which I named FBUpload.py. When I launch it this way, it works perfectly (in headless mode): Xvfb :10 -ac & python3 /home/someuser/scripts/FBUpload.py Problem is,…
So i have this php function path in codeigniter which I am trying to run through cron job in ubuntu. But whatever I have tried it is not working. The command I have tried so far * * * *…
I'm running a docker container with an image: ubi8/ubi-minimal The cronjob has correct path and go packet is already installed: crontab -l */2 * * * * go run /usr/local/src/script.go The file has correct permissions: -rw-r-xr-x 1 root root 6329…
I am having a small tour page that uses built-in cron jobs (wp-cron) to sync tours and sessions via an API every 4 hours and until here everything is perfect. Now, what I am trying to achieve now is to…
The script in file modBackup.sh does not run completely when started by cron, the result is a corrupted tar.gz file that is half the size of this one if I run manually. In any case, its size is many times…
I want to run some cron jobs in a Docker container and send the output to stdout. I read this post: How to run a cron job inside a docker container? To try this out with a simple example, I…