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
2
votes
1 answer

MySQL - Change field value after X minutes of inactivity

I am trying to find a way to have a cronjob which checks how long it has passed since the last update of a row, if it is more than X, then change field 'ACTIVE' to 'FALSE'. I have a robot which updates its current IP and add the timestamp. From the…
N3sh
  • 881
  • 8
  • 37
2
votes
2 answers

Google appengine Cron jobs

Can we specify Cron jobs dynamically? I want to define a task to occur at some time in future .How can I achieve that functionality? This is need to be done in Google App Engine. The ony way that I have found is to do polling
Anuranjit Maindola
  • 1,507
  • 1
  • 14
  • 30
2
votes
3 answers

Cron won't execute ruby script

I have a cron job set to execute a shell script telling the server to run a single ruby command (jekyll build --source /path/to/source/dir --destination /path/to/dest/dir) 2 minutes past every hour. The script executes just fine when I run it via…
John R
  • 45
  • 1
  • 5
2
votes
2 answers

How to use perl to modify crontab?

How could I append a cron task in crontab via a perl script? I thought of the following: #!/usr/bin/perl use strict; use warnings; `crontab<
Cratylus
  • 52,998
  • 69
  • 209
  • 339
2
votes
0 answers

cron job 2nd line doesn't execute

I have these 2 lines in cron tab. The 1st command executes but the 2nd one doesn't. It just doesn't run. No traces in log. I have a new line (enter) at the end. I have restarted the cron service also. The path is correct, I can run it as shell…
bomaboom
  • 190
  • 1
  • 14
2
votes
0 answers

Scheduling cronjobs at specified time

I have scheduled some jobs in crontab which are to be run one by one, at some specific time. My script for crontab is : 15 10 * * * /Users/sri/files/BatchFF.sh 45 11 * * * /Users/sri/files/BatchGC.sh 15 13 * * * /Users/sri/files/Batch_GUI_FF.sh 45…
2
votes
1 answer

Creating a cron job to run at hour mark and half hour mark for specific hours on specific day of week

I need to setup cron jobs so that they run at 1800, 1830, 1900, 1930, 2000, 2030, 2100 on every Monday and Thursday. So far I've managed to get to this: 00,30 18-21 * * 1,4 Is this the right way of doing it? If yes, will it run on 21:30 as well?
Hassan Javeed
  • 464
  • 4
  • 14
2
votes
4 answers

crontab issue when using exec php script?

I am using elementaryOS (base on ubuntu) When I run commaand line: kn3l@kn3l:/var/www/cronjob$ 25 15 * * * /var/www/cronjob/helloworld.php > /var/www/cronjob/cron.log and it works for crontab with terminal command line. BUT When I using PHP with…
tree em
  • 20,379
  • 30
  • 92
  • 130
2
votes
1 answer

Cronjob firing at wrong schedule.

i have two cronjobs, i want to run the two cronjobs at a small gap of ten minutes. once in two days, at 0100 hours and 0110 hours this is what iam trying. 0 1 */2 * * job1.sh 10 1 */2 * * job2.sh job1 is not working as expected. it runs twice…
sk27
  • 23
  • 3
2
votes
1 answer

Google App Engine Cron schedule and length

What is the min and max of cron schedule? And how long the cron can run? 24 hours? The below code work with schedule is 1 minutes. cron: - description: test url: /test schedule: every 1 minutes But I want to make it 30…
John
  • 3,888
  • 11
  • 46
  • 84
2
votes
1 answer

Shell script runs from CLI but not from Crontab

I have a shell script that goes through every JSon file in a directory and uses phantomJS to create a highchart png. The problem comes when scheduling a cron task to run this script - (Initially I used inotifywait but got the same error). The…
HelloWorld
  • 29
  • 6
2
votes
5 answers

Which is the best way to run a cron job every 30 seconds?

I would like to run a cron job every 30 seconds, but cron does not allow scheduling jobs more frequently than once a minute. Which is the best way to run a cron job every 30 seconds?
flaab
  • 543
  • 9
  • 19
2
votes
2 answers

Phantom cron job after installing ssmtp for sending e-mails

Today after installing ssmtp in order to send e-mails using the terminal, I got every half hour this e-mails: from: root @gmail.com to: root date: Wed, Sep 12, 2012 at 2:09 PM subject: Cron [ -x…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
2
votes
1 answer

How do we set cron job in social engine?

I am working on a social engine project and it has a module through wich an automatic email is send to users every morning. I have already created an action on the controller of the module which will send email to users. I would like to set it up…
Varada
  • 16,026
  • 13
  • 48
  • 69
2
votes
1 answer

PHP/Symfony: Create Application Context for Cron/Task

I have a long operation that I can no longer run from the UI as it exceeds the maximum execution time as well as memory limit. I am fairly aware of how I can set tasks in a table, and have a cron execute a sfTask that finishes pending tasks. Can…
Prasad
  • 1,822
  • 3
  • 23
  • 40