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,268
questions
1
vote
0
answers
10
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
0
answers
11
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
0
answers
14
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
17
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 ...
-1
votes
0
answers
14
views
Crontab will work or not on ubuntu desktop?
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
15
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
19
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
23
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
9
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
9
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
11
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
25
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
22
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. ...
0
votes
0
answers
8
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
15
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'):
...
-2
votes
1
answer
37
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 ...
-3
votes
0
answers
26
views
cron with screen error: must be connected to a terminal [closed]
I have set up to run the following from cron:
00 */3 * * * /usr/bin/screen -dRS mycode /home/user1/scripts/mycode.sh
And at specific hours i am getting error (via local email):
Must be connected to a ...
1
vote
0
answers
15
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 ...
0
votes
0
answers
25
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 ...
0
votes
0
answers
24
views
Need some help running a .sh script with this thing called “crontab” [closed]
looking for someone who’s used crontab before. This is my first time. I opened the program with the option “crontab -e”
I chose the easiest option “GNU nano 7.2”. Cleared out the instructions and put ...
-1
votes
1
answer
18
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
22
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 ...
-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
42
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 | ...
0
votes
0
answers
8
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:
...
1
vote
0
answers
40
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
9
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
0
votes
0
answers
27
views
Get environmenet variables inside a cron job of a docker container [closed]
I am trying to run actions in a Docker container on a regular schedule, but I am encountering errors related to accessing environment variables. My setup includes a file run.bash with the following ...
0
votes
0
answers
22
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
13
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
...
0
votes
1
answer
36
views
How to run cron jobs in Node.js Application where cron values are retrievied from MongoDB?
Running Cron Jobs from Node Application
Hi All,
I have to run cron jobs which I am receiving from MongoDB collection (say 'jobs')
But
these cron timings are mutable by users as per demand,i.e. users ...
0
votes
0
answers
21
views
How to remove Expired Session files thru Cpanel cron job?
I am hosting my site on shared hosting plan.
I have edited php.ini file to preserve cart contents & session data for 30 days in custom folder as below but after 30 days the expired session files ...
1
vote
1
answer
16
views
How to make a Flutter appliction a daemon in Linux(Ubuntu)
So, I have a flutter application. It works great, but it needs to do some background API calls. My current implementation is to turn off the gui, by not running the widget classes if there are command ...
0
votes
1
answer
31
views
How to insert a repo environment variable into a github actions cron string
My attempt of workflow.yml:
env:
UPDATE_FREQ: 15
on:
schedule:
- cron: "0/${{ env.UPDATE_FREQ }} * * * *"
Gives an error:
invalid cron attribute "0/${{ env.UPDATE_FREQ }} * * *...
1
vote
1
answer
27
views
Script for awscli check not working with crontab schedule
I have written a small code snippet to check the aws cli version
#!/usr/bin/env bash
if [ -e "/usr/local/bin/aws" ];
then
myAWS="/usr/local/bin/aws"
else
myAWS="/usr/...
0
votes
0
answers
26
views
Laravel schedule:work command displays errors though there are no errors
I have setup two cron jobs on my local Laravel 9 project setup. Both these jobs check if the job has not been run for today in a cronjob table. If the job has not run, it runs the job and creates a ...
1
vote
0
answers
23
views
Wordpress cron-job not showing up under wp control and not working, what can I do?
I have this plugin that works when I activate it in wordpress under plugins. The problem however, it only runs once. I need it to run once a day though. Right now I would have to manually deactivate/...
0
votes
1
answer
40
views
App Engine Cron Job Does Not Show Up After Uploading
I followed the guide to create and upload a cron job for my GAE project. It looks like it works but does not show up in Cloud Scheduler. Here's the output when I run gcloud app deploy cron.yaml:
...
1
vote
3
answers
61
views
Scheduled python code can't find module when run in Docker
I'm trying to run a python script inside a Docker container every 2 minutes. To achieve this, I am using a cron job. When I run the Python script on the host machine, it executes perfectly, but inside ...
0
votes
1
answer
23
views
Cron Job Log File on Jelastic Virtuozzo
I'm trying to create a log file for cron job on my jelastic/virtuozzo platform. I have a syntax to create a cron job every 2 minutes:
*/2 * * * * wget -q -O /var/www/webroot/ROOT/cron_log https://...
0
votes
1
answer
20
views
node-cron not executing on render server
i am trying to execute multiple functions at different time everyday in my node js
const cron1=cron.schedule(`30 5 * * *`,()=>{
balanceCall(address,symbol,btc,options)
})
const cron2=cron....
-1
votes
1
answer
51
views
Convert next cron time in UTC format
My database has times in UTC format. When I fetch from the database it comes in a long datatype format. For eg
In DB - 2023-03-08 15:01:05.234081
Corresponding Long - 1678258865
I am having a cron ...
-1
votes
1
answer
42
views
Laravel 9 Cron job does not run
I have a Laravel 9 project. I need to run some jobs through Cron. Following the documentation, I have updated app/console/Kernel.php as given here (Testing to update the notification table):
namespace ...
-1
votes
0
answers
12
views
Crontab launches python but doesn't run script, no logs :(
Crontab launches python but doesn't run script, no logs :(
I have tried everything.
There is a final code:
*/1 * * * * /Users/ekaterinakrukova/whatsapp/test.sh >> ~/whatsapp/cron.log 2>&1
...
1
vote
1
answer
32
views
Standard library implementation (testable) of gocron function
I have a requirement to run a job (hitting rest endpoint, then sending message to queue) on a timed interval. Currently I have this function, which using gocron - https://github.com/go-co-op/gocron
...
0
votes
0
answers
8
views
Restarting pulse audio deamon from crontab
I'd like to restart the pulseaudio deamon from cron overnight. Audio mic seems garbled when I start my morning meetings, but is fine after a restart.
I have the following cron entry
* * * * * bash -...
0
votes
0
answers
18
views
How to create YAML file for reading data from opensearch or elasticsearch with Schedular
I have to create YAML file which is having data from opensearch or elasticsearch
and file contains schedular which will run after 1 min.
Can you please help me to solve this
I have tried to check ...
-2
votes
0
answers
23
views
How to create a cronjob on an apple computer (Monterey)
I am attepting to create a cronjob that will delete a folder. However when it comes time to delete the command does not execute.
crontab -e
# test job
45 14 * * * sudo rm -rf ~/Library/Application\ ...
0
votes
0
answers
16
views
Jenkins build periodically every 15 days on monday
How to scehdule jenkins build every 15 days on monday ?
https://www.devopsschool.com/blog/setting-up-the-cron-jobs-in-jenkins-using-build-periodically-scheduling-the-jenins-job/
tried with cron('30 6 *...
0
votes
1
answer
10
views
Controlling Access to crontab from others users
I try to Controlling Access to crontab from other user, example:
usre 1 is userDemo1 with crontab and second user userDemo2, I need to list crontab of userDemo1 from userDemo2 but I get error "...