Questions tagged [cron]
Cron is a time-based job scheduler running as a daemon process in Unix-like computer operating systems. Questions about configuring cron for systems or administration are OFF TOPIC.
19,829
questions
0
votes
0
answers
54
views
Laravel Tasks - logging stdout, but getting blank lines before and after each entry
I am successfully and happily running a Laravel 10 Application in a container, using docker-compose in a development environment and AWS ECS Fargate in production.
This application has tasks scheduled ...
-1
votes
0
answers
16
views
Creation of a lyric bot using Node.js and Cron
I am currently trying to create a lyric bot for twitter that randomly tweets lyrics at every single hour of the day.
This is what my code currently looks like:
require("dotenv").config({ ...
0
votes
0
answers
15
views
Email was delayed in WP project
I have a WP project that have several cron jobs such as sending email to admin's email address everyday.
This email is a kinda reports of the website so it's a bit important for me.
I am currently ...
0
votes
1
answer
24
views
Docker volume backup creates root:root owned files
I'm trying to backup a docker volume by tar-ing the contents and copying that out of the container using a bind mount (I think). The command is:
docker run --rm -v ./$BACKUPDIR:/backup -v ...
0
votes
1
answer
36
views
Scheduled Tasks or Cronjobs with App Platform Worker
I'm looking to use App Platform for hosting some custom code. This is meant to be a scheduled type of task, so from what I understand, I'd want to set up a Worker component to run in the background. I ...
-1
votes
2
answers
138
views
Problem in using scp with sshpass in Linux Shell
When I type the following command in Putty connected to Server A.
My file is copied from Server A to Server B.
sshpass -p 'myPass' scp userB@serverB_ip:/file.txt /home/XXXXXX.txt
However, it does not ...
0
votes
1
answer
47
views
cron log shows the job is running but actually the job is failing
I have a cron job in aws ec2 instance defined as:
0 2 * * * /home/ec2-user/scripts/backup.sh
0 3 * * 0 /home/ec2-user/scripts/cleanup.sh
0 * * * * /home/ec2-user/scripts/health_check.sh
I checked ...
0
votes
1
answer
29
views
start node.js script from python script in crontab
Ubuntu 22.04.2 LTS
Python3.11
Node v22.2.0
I'm trying to run a node.js script from a Python script by running a Python script from crontab, but nothing happens exactly in the part where the node.js ...
0
votes
1
answer
29
views
Python Selenium execute from cronjob linux and shell script
I have a shell script that executes a python script through a cronjob.
If I run the shell script or python script it executes without any issues.
It only has issues when I execute it from a cronjob.
...
0
votes
0
answers
16
views
Dockerized crawler as cronjob with database cannot resolve database and run script with correct installed packages
I developed a crawler, but I am struggling dockerizing it with database. The source code is available at: https://github.com/brunolnetto/RF_CNPJ/tree/dockerizer-crawler. It is not easy to have an ...
0
votes
1
answer
31
views
Simple cron job with docker does not run correctly
I wrote this reproducable repository to run a cron job with docker. Run it with command docker compose build && docker compose up. It restarts itself and does not print 'Hello world' every ...
0
votes
2
answers
51
views
Cron job and docker
I have a web crawler. It must run periodically. I want to use Docker to host both script cronjob and database. I am able to write the Dockerfile and docker-compose.yaml below. I get the error below on ...
2
votes
1
answer
72
views
How to use a pattern-list within a longer path name in a cronjob?
Every day I need to move four files from one folder to a subfolder. On May 26th, these are the files from yesterday:
changes-ar-240525.txt
changes-dp-240525.txt
planned-ar-240525.txt
planned-dp-240505....
0
votes
0
answers
23
views
Performance between Laravel Scheduler vs Crontab
I've always used the Linux Crontab to call my cronjobs. Most of the times I only had 5 to 10 cronjobs, which is pretty manageable, specially in terms of UI. I also used many times the cPanel cronjobs ...
0
votes
0
answers
17
views
sam cron schedule for 7am -8pm CST
i want to ask what the correct cron schedule is to run a job between 7am-8pm CST, every 2min.
This is what i have currently. I am assuming the ScheduleExpressionTimezone setting makes sure the time ...