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.
7,039
questions with no upvoted or accepted answers
17
votes
2
answers
9k
views
Posting to Tumblr with PHP and Tumblr API
I am trying to post messages automatically to my Tumblr Blog (which will run daily via Cron)
I am using the Official Tumblr PHP library here:
https://github.com/tumblr/tumblr.php
And using the ...
11
votes
1
answer
2k
views
How to ensure only one instance of an AWS ECS scheduled task run at the same time?
Just like cron, AWS ECS Scheduled Tasks do not provide any built-in solution to prevent multiple instances of a scheduled task run at the same time.
One common way to solve this problem for cron is ...
11
votes
1
answer
2k
views
cronjob error in OSX: "no path for address"
I tried running a Python script using cronjob but I get the following error:
cron[44405]: no path for address 0x10ff7a000
in grep cron /var/log/system.log
When I ran the script without using cronjob ...
10
votes
1
answer
464
views
Cron boot script only during certain times of the day
So I have a collection of scripts which are used to control my reciever and tv power during certain events like boot, screensaver, and remote control. One of these is executed during login but the ...
8
votes
2
answers
327
views
nestjs how to disable ScheduleModule(@Cron) in tests
This is my app.module.ts in NestJS:
import { Module } from '@nestjs/common';
import { CatsModule } from './cats/cats.module';
@Module({
imports: [CatsModule, ScheduleModule.forRoot()],
})
export ...
8
votes
1
answer
6k
views
To use Certbot, packages from the EPEL repository need to be installed
I use certbot-auto for deploying Let's Encrypt SSL certificates, and I renew certificate with crontab -e like this:
* 01 * * 1 /home/myname/certbot-auto --quiet
It has an error message like the ...
7
votes
1
answer
1k
views
Node.js CronJob execution when using mocha for testing
So, I've got some js code which is a slackbot which supposed to simply listen and parse the date provided, then start a CronJob to run a certain function according to the cron or date format provided. ...
7
votes
0
answers
3k
views
Sending out notification from a PostgreSQL RDS instance (without pg_notify)?
We have a Postgre RDS instance where new data is inserted every 5 seconds. We'd like to set up some alerts based on the readings.
Theoretically we should set up a trigger with corresponding function ...
7
votes
1
answer
3k
views
How do you unset MAILTO in crontab?
As the documentation for crontab explains, if MAILTO is not set then output goes to the owner of the cron, if MAILTO is set and not empty, it says where mail should go, and if it is set and empty, no ...
6
votes
0
answers
958
views
How to perform cron-like scheduling using Kotlin coroutines?
I'm looking for ideas (or libraries if anyone knows any) about how to use cron-like syntax for scheduling kotlin coroutines to be run.
Ideally, the solution should have the following aspects:
Accept ...
6
votes
0
answers
2k
views
serverless rate is working but cron is not working
In serverless.yml
functions:
cron:
handler: schedule/handler.run
events:
- schedule:
rate: cron(28 10 15 * ? *)
enabled: true
I want to get this function is ...
6
votes
0
answers
1k
views
Wordpress Cron doesn't fire wp_mail() but php mail() function
I´m trying to use wp_mail in cronjob task, but no email was sent. Instead pure php function mail() works.
Question 1): Why does mail() work but wp_mail doesn't?
Question 2): Calling www.domain.de/wp-...
6
votes
2
answers
4k
views
Google Cloud Platform : Running several hours scraping script
I have a NodeJS script, that scrapes URLs everyday.
The requests are throttled to be kind to the server. This results in my script running for a fairly long time (several hours).
I have been looking ...
6
votes
0
answers
1k
views
timezone aware cron jobs (adjust for DST)
I have a need to download files from all over the world to the same server. The files become available at the same time each day in the local timezone. The challenge is daylight savings time. Because ...
6
votes
2
answers
2k
views
WordPress schedule event not firing in set time
In WordPress, I am creating a plugin where I am sending emails to users. For that, I am using WordPress cron job. So basically what it will do is just send emails to users every hour.
So my code looks ...