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.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
17 views

Different Cron Expression for day and night

Is there a way to create a cron expression to run for every half an hour during the day and every 4 hours during the night? I am using this cron expression inside a cloud scheduler that runs the GCP ...
0 votes
0 answers
3 views

meteor/saucecode:timezoned-synced-cron SyncedCron running twice

I have syncedCrons running in my project. The idea is, I will collect the synedCrons document from database and iterate a loop over the documents const startAllScrappingCrons = () => { const ...
-1 votes
0 answers
41 views

Crontab return cant locate module [closed]

I am setting crontab to run a bash script to get cmd from the trigger file, then execute another perl script through the command grepped. I am facing a "can't locate module" issue. Error: ...
  • 119
0 votes
0 answers
12 views

Every midnight update MongoDB collection with best performing data from different collection

I have one collection, A with posts, and another collection, B for users. Every midnight I'd like to take the top n performing documents (in my case user-generated posts ranked by like count) from A ...
0 votes
0 answers
10 views

'bash: line 1: heroku: command not found' - Heroku web interface

I am trying to make a cron that restores my staging database, for this I was using the command 'heroku pg:backups:restore', the problem is that when I run the job in "Cron to Go" it says ...
0 votes
1 answer
25 views

Using *gin.Context in cron Job

I have cron job that will call function that require *gin.Context as statement, this statement will be required int other process in the other next step. Previously I had made my code like this: _,...
  • 25
0 votes
0 answers
15 views

cron job issue on namecheap hosting after installing prefex crm

I recently installed prefex crm on namecheap hosting, I am facing issue with its cron job. What I got in email is as given below: Error in argument 1, char 2: option not found u Usage: php-cgi [-q] [-...
0 votes
1 answer
10 views

Creating custom crontab files

I would like to create my own crontab files. For example, I would like to have a folder on my server called jobs where I can input several files that act like crontabs. For example one file called ...
  • 1,775
1 vote
0 answers
20 views

Spring CronExpression - Why remove support for year field?

I have an application in spring boot, so naturally I used CronExpression which spring itself provides. But now I am starting to wonder - the old class CronSequenceGenerator was able to support cron ...
0 votes
1 answer
27 views

Run R script if sub-directory changes

Currently, in my organization, we collect data from participants on a weekly basis. This data then gets put into a sub-folder within the folder "Data". The sub-folder reflects what sport our ...
0 votes
1 answer
18 views

How do I reliably run a PHP script with a long run time triggered using a cron job

I want to crawl 3,000 URLs on a competitor's site to scrape a price value. I don't want to over-load their servers or otherwise trigger any firewall so first basic measure is to spread these 3,000 ...
1 vote
0 answers
31 views

Debian : use sudo bash script without password at startup [closed]

I am on Debian 11 testing. It's a low-end computer intended for users with little computer experience and I want to keep it up to date with a script that do not prompt users for a password. Following ...
0 votes
1 answer
33 views

crontab to start and change libcamera-vid RTSP stream on a Raspberry Pi

I'm using my Raspberry Pi as a security cam, and I want the ability to automatically start the libcamera-vid stream on reboot, plus change some settings throughout the day. I pieced together the below ...
0 votes
1 answer
12 views

Cronjob strato shopware

Could someone help out, working to disable the admin worker, but first i need to setup the cronjobs php /pfad/zu/Shopware/bin/console scheduled-task:run --time-limit=295 --memory-limit=512M is not ...
0 votes
1 answer
23 views

How to optimize a CRON Job on Vercel that is timing out with 504: GATEWAY_TIMEOUT error due to serverless function exceeding the 10 secs timeout limit

I have a CRON Job running on Vercel. But whenever I try to run it I get 504: GATEWAY_TIMEOUT error. I checked Logs of my Cron Job function on Vercel, and everything seems fine. So I went ahead and did ...
0 votes
0 answers
25 views

exec function in php work in terminal but not work in crontab

I want to suspend a number of system users and disable their processes When I run this code in the terminal, it runs correctly and the user is blocked and the processes are killed But when I run it ...
0 votes
0 answers
17 views

WP Cron event isn't consistently scheduled on 'save_post' action

I have a custom post type, named 'newsletter' that I want to schedule a wp-cron job for whenever a post is created or saved. I'm running into an issue where the wp-cron job is being created properly ...
  • 15
0 votes
0 answers
24 views

Laravel: Cronjob is not working on Windows Amazon EC2 server

Im trying to make a task scheduling on our Amazon EC2 server I created a basic task in task scheduler. I followed the instructions with this link https://fitdevops.in/how-to-schedule-tasks-in-windows-...
  • 957
0 votes
1 answer
17 views

how use the Cron Syntax for node-cron

I'm trying to execute once a cron job in nodejs with express, with the follow code: const cron = require("node-cron"); const EventEmitter = require("events"); const event = new ...
0 votes
1 answer
21 views

PHP Fatal Error: Failed opening required 'wp-salt.php' when running WP-CLI command as cron-job in crontab

This question is intended to serve as an information post for others to find, since I fortunately already discovered a solution. I tried to run a Wordpress-CLI command as a cron-job in crontab on a ...
-2 votes
2 answers
71 views

Laravel: Is it possible to run the cron job daily automatically?

I just learned earlier how to create a cron job, now I want to execute the command daily automatically. In my kernel file, I declared it everyMinute but when I check the path it didnt backup the file ...
  • 957
1 vote
0 answers
41 views

MongoDb Stucks while working with heavy Load

I am running a cron whose code is written in Golang, and i am using mongoDb as database. The cron is running with 25000 merchants parallely, each merchant having different database, which means there ...
  • 61
0 votes
0 answers
7 views

Whats the difference between running a process as a daemon versus initializing it in crontab

I am using the gpspipe process to gather data and store it for remote transmission, this process has the option to run as a daemon and as I will be running some other programs I figured this would be ...
  • 65
1 vote
0 answers
16 views

Cron job not working on Bitnami AWS Lightsale

We are using gptaipower plugin in WordPress, for Schedule tasks we need to add the below cron job as per their documentation: https://gptaipower.com/how-to-add-cron-job/. * * * * * php /opt/bitnami/...
0 votes
1 answer
61 views

Scheduling job biweekly in Azure Databricks

I want to schedule a job in databricks notebook that starts running from 24th March 2022 and runs every 14 days after that. So the days would be 24th march, 7th april, 21st april, 5th may. Like this. ...
0 votes
2 answers
33 views

AWS Glue - CRON Scheduled Trigger

I have been trying to find a Cron expression to use in my AWS Glue Job. I tried many examples and I'm still not sure if this is possible or NOT, since this is the first time I'm adding time schedule ...
0 votes
1 answer
52 views

How to Create Cronjob in NestJs Kubernetes cluster so at a given time only one pod job get executed

Scenario : A repo of NestJs is executing a cron job for sending messages to subscribers as per cron expression. Scenario is running fine when only one instance is running. Problem : Multiple email ...
-2 votes
0 answers
20 views

Crontab will work or not on ubuntu desktop? [closed]

31 14 * * * /C:/Users/HP/AppData/Local/Programs/Python/Python39 /G:/Python_Script/daily.py >> /G:/Python_Script/file.log 2>&1 how to run above script on ubuntu desktop. Thank you..
0 votes
1 answer
25 views

How to run airflow dag Tuesday through Sunday

I have an airflow running in cloud composer, I want to run the dag everyday except mondays. I have setup my dag as follows but it didn't run on Tuesday. default_args = { 'owner': 'name', '...
0 votes
1 answer
25 views

Get the cronjob api used for all cronjobs in all namespaces kubernetes

I want to view the api version used in all cronjobs in all namespaces in my cluster. Recently updated the cronjob api to latest and wanted to verify that all cronjobs are using the new api.
0 votes
0 answers
25 views

Python module not being seen by bash script on reboot

I have a python program I am trying to get to run on reboot on my Raspberry Pi. Whenever I just run the bash script in my terminal, it works fine. Whenever I add the @reboot line to crontab, it throws ...
-1 votes
0 answers
11 views

Can we write a cron expression to schedule a GCP VM - Stop:9pm – 8am every day, weekend: Fri – 9pm – Mon - 8am [closed]

I am trying to create an instance schedule that can turn off the GCP VM on weekdays(mon-friday) from 9pm to 8am and also shutdown on weekends (sat and sun whole day) I was able to write the cron ...
0 votes
0 answers
10 views

Message not getting sent periodically

I'm trying to make a webex bot using the webex-bot-starter framework. The bot listens whenever it is mentioned in the chat and responds accordingly using framework.hears function. But I want to send a ...
0 votes
0 answers
19 views

How to run a program at boot time in the Guix system?

Guix implements mcron, a pretty nice "new" implementation of Paul Vixie's cron. Time specifications such as @reboot are non-standard and it seems that mcron did not implement it. However, ...
-2 votes
2 answers
27 views

Access host crontab from docker container [closed]

I’m willing to be able to edit host crontab content from within a docker container that runs on that host. Host is running on Ubuntu. How can I achieve this in run time? I need a cli command. I’ve ...
-2 votes
0 answers
23 views

AWS performance differences between two instances

I have an API that is stored in two different AWS instances. One is m3.large and the other is t3.large. The API code and everything is exactly the same. I have a cron jobs that calls the APIs. ...
  • 1
0 votes
0 answers
12 views

Running Cron in Django on AWS Elastic Beanstalk without .ebextensions

I'm trying to run a function to count daily active users within a Django application using cron. All guides I can find seem to be many years old and they all reference using a .config file located ...
1 vote
1 answer
18 views

File not found while creating file in Python3 in a cron job. (FileNotFoundError: [Errno 2])

After I've updated my system, a weird error appeared: Traceback (most recent call last): File /home/username/bin/my_application.py, line 116, in <module> with open(lock_file, 'x'): ...
  • 13
-2 votes
1 answer
43 views

crontab for calling python script

Ive been trying to get crontab to work all day but I think Im doing something wrong because it wont work. So I have this script which im using to test whether the cronjobs run or not and the script is ...
1 vote
0 answers
30 views

Cron job is working on localhost but not on Vercel

With vercel dev I can run the following code, but when I run on Vercel (https:/avercelurl/api/cron) I receive {"success":true} but runTest function doesn't run at all. What can be the ...
  • 533
0 votes
0 answers
26 views

Send SNS email every nth business day of the month

Using only AWS, I'd like to send an SNS email to subscribers on the 9th business day of every month. I would normally schedule a cron job in Eventbridge to trigger a lambda which then sends a message ...
-1 votes
1 answer
21 views

Cronjob Laravel Error There are no commands defined in the "process" namespace

I run the code for cronjob summary-operational sudo php artisan process:summary-operational "2023-01-11" "2023-01-12" But i have error message There are no commands defined in ...
0 votes
1 answer
25 views

How to enable schedule in java spring boot

I have used to java Scheduled cron to set auto job in my project. I add config in main SpringBootApplication, and job class, but nothing happen, job doesn't run every time which i set (10 seconds). So ...
  • 11
-1 votes
0 answers
18 views

@Scheduled not working after daylight savings start

Our Job not getting triggered after daylight started. Any suggestions please. Here is the annotation we are using, @Scheduled(cron = "0 0 2 * * *") public void launchJob() { } Springboot ...
0 votes
0 answers
45 views

standard_in 1 syntax error in bash script

I have a simple bash script below #!/bin/bash sratio=`/root/trap -t -a | awk -F '|' '{print $6}' | sed -e 's/[\t ]//g;/^$/d' | sed '1,2d' | awk '{n += $1}; END{print n}'` tdisks=`/root/trap -t -a | ...
  • 189
0 votes
0 answers
11 views

How can I install automatically configure a job in crontab-ui?

I'm using crontab-ui to automatice the execution of a python script. I'm deploying it with other services in a docker-compose in the following way: ./docker-compose.yaml services: ... crontab-ui: ...
  • 129
1 vote
0 answers
71 views

Prevent Render.com Server from Sleeping

I have hosted a node server on render.com on a free tier. It goes to sleep every 15 minutes, so to prevent that I think I can self ping the server to keep it awake. I have tried this code but it does ...
0 votes
0 answers
11 views

What is the cron expression for generating two different schedules

I'm looking to run a job: 4pm on the last day of the month 4am and 4pm every day from 1st to 15th every month
  • 326
0 votes
0 answers
23 views

My cronJobs is not working. It should send an email to all clients every morning. Why?

I had to change the AWS Server. Now, the new one is not sending the email every morning to the clients (and it was working in the old server). I already saw all the code and didn't find anything ...
0 votes
0 answers
16 views

How can I deploy rpaframework robots "tasks.robot" on a VM or a server?

I know that Robocorp provides control room where I can deploy these robots which can be manually triggered or scheduled. And the other option is, CRON jobs which can run these robots using command ...

1
2 3 4 5
386