Questions tagged [cron-task]

cron-task is a task (command or shell script) executed periodically at certain times or dates by the cron scheduler.

Resources

925 questions
5
votes
2 answers

Cron job for everyday at 5pm

I want to run a cron job at 17:00 everyday. Which one is the correct format? 0 17 * * * or 0 */17 * * * or are they both same? Please do tell the difference.
N.A
  • 187
  • 1
  • 1
  • 5
5
votes
2 answers

Scheduling a cron job in python to run a python script every day at 10 am through APSCHEDULER

I want to schedule a cron job in python that runs a python script every day at 10 am. I am using apscheduler to achieve this functionality. I am trying to use apscheduler functionality to schedule a cron job that runs every day at 10 am and executes…
Nakul Sharma
  • 143
  • 2
  • 9
5
votes
1 answer

Google Cloud Function - AttributeError: 'module' object has no attribute 'DEFAULT_MAX_REDIRECTS'

I'm using Appengine cron job to schedule cloud function and when I deploy and try to run a job, getting below error. Any idea what could be wrong here? Followed steps from…
5
votes
0 answers

Generate Google Charts images using CRON and add to PDF

I want to be able to generate a Google Charts images and this will done by cron job. To start with, I understand that Google Charts is a client-side library that runs in browsers, so you can only generate charts in the browser. And also, I'm…
jameslem
  • 85
  • 2
  • 12
5
votes
4 answers

How to run cron job before midnight to after midnight (over midnight)?

How can I create a cron job that runs from 19:00 to 5:00? This doesn't work: * 19-05 * * .... Should I use two jobs? * 19-23 * * .... * 1-5 * * ....
Farhadix
  • 1,395
  • 2
  • 12
  • 25
5
votes
1 answer

wp_schedule_event hook scheduled but not working

I'm trying to trigger cron job from WordPress Plugin that I'm writing (It's gonna take all new Products and export them to CSV every day) so the problem is that when I'm put this code in functions.php all working great and the code is valid but…
Nick
  • 129
  • 1
  • 12
5
votes
2 answers

How to set up a cron job with codeigniter

I am trying to set up a cron job using COdeigniter but I cannot figure out how to get it to work. I have a file called email_check.php in my controllers folder, and I have added a .cron file to the servers cron folder, which contains the…
Pooshonk
  • 1,284
  • 2
  • 22
  • 49
4
votes
4 answers

Quartz Scheduler for java- How to run job every 5 minutes

Friends, I am using quartz scheduler for running a task every 5 minutes starting when application deployed & running continuously so i have written code as: SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sche =…
JMohasin
  • 513
  • 2
  • 13
  • 35
4
votes
1 answer

Whenever cron job is not working in rails 3

This is the code in my schedule file. I am using 1 min just to test whether its working or not. every 1.minutes do runner "User.update_all('daily_sms_count' = 0 )" end from terminal i setup whenever --set environment=development --update-crontab…
Mohit Jain
  • 43,139
  • 57
  • 169
  • 274
4
votes
0 answers

How to set Chronos job schedule to run only 4 times every day?

We have a requirement where a particular chronos(https://mesos.github.io/chronos/) job has to be run every 3 hours a day starting from morning 8 AM. So total 4 runs i.e. 8AM, 11AM, 2PM, 5PM and no runs after that. It should repeat every day. How to…
ExploringApple
  • 1,348
  • 2
  • 17
  • 30
4
votes
1 answer

How to create SOAP/XML client from WSDL in console cron job app C# vs2012

I have a lot of SOAP/XML and REST/JSON experience in Java and C++, but am pretty much a newbie in .NET. I have to create a SOAP client from a WSDL in C# in VS 2012. The app is not a web-based app, but a console app that will be run as a cron job…
4
votes
3 answers

pkill with -f flag in crontab not running command after semi colon

I wanted to kill a process and remove a flag indicating that process is running. cron: 00 22 * * 1-5 pkill -f script.sh >log 2>&1 ; rm lock >log 2>&1 This works perfectly when I run it on terminal. But in crontab rm is not running. All I can think…
SS306
  • 157
  • 1
  • 3
  • 9
4
votes
2 answers

Scheduled posting to twitter in PHP cURL

I am currently able to post tweets to my Twitter account using Twitter API. I am using cURL. But now I want to post the tweets on scheduled date/time. I know that it is possible but no idea how ? code :
Ahalya Hegde
  • 1,571
  • 2
  • 18
  • 41
4
votes
0 answers

How to give a random delay on Cron Jobs commands

I have tried a couple of suggestions but always failed. I want to get a php file runned almost every minute, for this I am using the command: * * * * * wget http://link.php How can I give that command a random delay? For example, 1st…
Berque Cemilian
  • 189
  • 1
  • 2
  • 11
4
votes
3 answers

Cron job does not run

Following is the entry in the crontab: MAILTO=abc@gmail.com 45 14 * * * /home/user/simple.sh I've also done chmod +x on the simple.sh But the crontab does not run, it doesn't even send an email. pgrep cron shows an Id. I also tried bouncing crond.…
nish
  • 6,952
  • 18
  • 74
  • 128