cron Questions

2

Solved

I have a script that will take around 10-15 hours to complete. I want to run it on EC2 instance and after say 10 hours stop the process forever. Approaches-- CRONTAB -if I make a cronjob for the ...
Grozny asked 10/9, 2015 at 11:20

3

Solved

I have a Scheduled Cloud Function (using Google's new solution) that is meant to run every Monday at 12:00am. export const updateHighScores = functions.pubsub.schedule('0 0 * * 1').onRun((context...
Constantine asked 20/5, 2019 at 12:11

3

Solved

I setup a ssh key for github account, so I don't have to enter the password every time, it works fine. Here is the script I use: #!/bin/bash git push origin master But when I use cron to run it,...
Insatiate asked 31/12, 2013 at 6:2

6

Solved

I have a Rails import job that run as a cron job setup through the whenever gem. It was running correctly until I recently updated the app. Now we are seeing the following Error in the logs when th...
Est asked 6/3, 2020 at 22:7

4

I want to schedule a CloudWatch event to run every other Monday and have started with this command: 0 14 ? * 2 * Currently with the above command, I get a weekly schedule of Monday executions: Mon,...
Writhe asked 23/7, 2020 at 16:34

7

Crontab command not found on Linux web app on azure,I'm trying to schedule a cronjob for a laravel application. I'm trying to run a cronjob for my laravel web app.The solutions online suggest that...
Libertylibia asked 26/8, 2019 at 8:24

4

I want to edit cron tab daily to delete / add some jobs .. so I added cron job ( helper job ) to run php script to handle these edits. When I run this script by browser works fine .. but when it ru...
Vacillate asked 6/1, 2022 at 11:20

10

Solved

I would like to run a python cron job inside of a docker container in detached mode. My set-up is below: My python script is test.py #!/usr/bin/env python import datetime print "Cron job has r...
Dunghill asked 8/11, 2014 at 21:4

6

I have installed PostFix and sendmail both, and then try to set cron for a python script and want to send an email by cron. My cron schedule like: [email protected] */2 * * * * python3 /var/...
Downcast asked 28/9, 2017 at 6:29

7

Solved

I have a project that needs to send notifications via WebSockets continuously. It should connect to a device that returns the overall status in string format. The system processes it and then sends...
Purloin asked 26/7, 2016 at 9:48

12

Solved

I have a python script that'll be checking a queue and performing an action on each item: # checkqueue.py while True: check_queue() do_something() How do I write a bash script that will check ...
Cirrocumulus asked 30/3, 2009 at 11:27

5

I am trying to create recurring job in hangfire that runs, once a month at the second Monday, something like this: 1. Monday, May 14, 2018 8:00 AM 2. Monday, June 11, 2018 8:0 AM 3. Monday, July 9...
Thither asked 13/4, 2018 at 8:54

14

Solved

I need the ability to run a PHP script 20 times a day at completely random times. I also want it to run only between 9am - 11pm. I'm familiar with creating cron jobs in linux.
Psychodiagnostics asked 28/1, 2012 at 23:15

27

I have a cron job setup on one server to run a backup script in PHP that is hosted on another server. The command I've been using is curl -sS http://www.example.com/backup.php Lately I've been get...
Dickinson asked 17/12, 2009 at 20:41

4

If I try to use Visual Studio Code (on macOS 10.15) to edit my crontab, it opens an empty file without the contents of my crontab. $ VISUAL='code' crontab -e crontab: no changes made to crontab I ...
Maghutte asked 28/6, 2020 at 3:15

9

I am trying to schedule a bash script to run with Bash on Ubuntu on Windows in Windows 10. Every time that I to write the cron, I get the following error messages in the terminal: crontab: install...
Dissociation asked 22/12, 2016 at 10:35

10

Solved

I've seen conflicting recommendations. From the eff.org docs: if you're setting up a cron or systemd job, we recommend running it twice per day... Please select a random minute within the hour f...
Canopus asked 8/1, 2017 at 17:24

3

I am trying to deploy multiple cronjob using same helm chart. I have defined cronjobs in values.yaml file which is below. cronjob: crons: "0": name: one-minute-cron schedule: "*/...
Arletha asked 14/9, 2021 at 7:41

0

EDIT: I've solved it. I had to load a custom postgresql.conf file. I'm trying to set up a PostgreSQL (v16.1) Docker container with pg_cron, but I'm getting this error when it starts up: 2024-02-12 ...
Uredo asked 12/2, 2024 at 7:38

4

Solved

Say I have a crontab which runs every 20 minutes and I have a hour range which can vary so lets say a-b, which in one example could look like */20 5-23 * * * /usr/bin/cool_program My question is...
Gypsum asked 3/5, 2013 at 5:46

10

Solved

Is there a way to automatically remove completed Jobs besides making a CronJob to clean up completed Jobs? The K8s Job Documentation states that the intended behavior of completed Jobs is for them...
Stokeontrent asked 29/12, 2016 at 18:39

9

I have a web server (odin) and a backup server (jofur). On jofur, I can run the following code to rsync my web directories (via key authentication) from odin to jofur: rsync -avz -e ssh [email&#1...
Hakan asked 28/12, 2012 at 17:34

2

I like to run a cron that snapshots a cam like this: * 9-17 * * 1-5 vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /home/foo/tmp/cam --scene-prefix snapshot --scene-f...
Skaggs asked 29/11, 2013 at 12:21

11

Solved

Quite simply, I have node script that I want to execute once a month. 30 6 1 * * node /home/steve/example/script.js But this doesn't work, presumably because of path or the shell the command is ...
Commingle asked 1/5, 2011 at 15:40

6

Solved

I have following Spring job to run after every 30 minutes. Please check my cron expression, is that correct? 0 0 0 * * 30 Here is a full cron job definition from the related Spring configuration f...
Giovanna asked 2/11, 2011 at 10:55

© 2022 - 2025 — McMap. All rights reserved.