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
0
votes
0 answers

Why am I receiving an error when running a cron job on the Facebook API?

I have made a Facebook auto post system using latest API and i want the index.php file to execute by cron job. But when cron job is run, it mails me this error and post to Facebook is not posted. But when i run the index.php on browser it runs very…
TechBrush.Org
  • 29
  • 1
  • 1
  • 5
0
votes
2 answers

Webmin cron job

I have been tried for few hours and nearly 1 day to try with this but I failed to make it I want to run the cron file every 10 minutes and I searched for so many tutorials but I don't know why it is not working. Anyone here who experienced in Webmin…
Sunny
  • 477
  • 2
  • 5
  • 15
0
votes
2 answers

Cron task python script not working

I have a python script I want to fire off every night at midnight. I'm using cron scheduler right now to do so, however, I can't figure out why it's not working. For now, I've been using close times (within the next minute or so) to test the…
carbon_ghost
  • 1,114
  • 5
  • 18
  • 40
0
votes
1 answer

CRON JOB Visit Website PHP Script

I have a script called urlretrieve.php that I have placed on my web server. Lets say the web address is www.example.com/urlretrieve.php and when you visit this website, a file from an ftp site is downloaded called download.zip and placed into the…
0
votes
1 answer

Cron Expression for ignoring 1st Saturday of the year & run on all the Saturdays of the year

Can someone help me in building the cron expression. I've a requirement where I need to run my Job on all the Saturdays at 9:00 AM in a year excluding 1st Saturday of the year. I had tried with the below expression, but its not working.. 0 0 9 ? 1…
user3500543
  • 33
  • 1
  • 3
0
votes
1 answer

Cron job in hostserver not working

I have a python program which extracts data and saves it in the database I am using cron tab on my local computer as follows which works fine! 15 20 * * * python /home/ahmed/Dropbox/AppFlatForRent.py Now i am using a similar command on my…
user3265370
  • 121
  • 1
  • 2
  • 12
0
votes
1 answer

update crontab file using php script

I have to create a crontab file using php script.This is my code : the file crontab.txt is created.But the next command 'crontab…
thomas
  • 27
  • 1
  • 1
  • 5
0
votes
1 answer

Create JS file using PHP every 24 hours

Im trying to setup a cron job which runs a php script every 24 hours that recreates a javascript file on the server. I have tried the following commands for cronjobs without any luck. Note if I open/run this file from a browser it totally…
0
votes
0 answers

Setting the cron job to reset the python program after it is terminated

I want to set a cron job in ubuntu with this job I have a python webscraping program which needs to be scrapped continuously after the program is terminated. In other words the flow is like this If program is terminated, set the cron job again…
0
votes
1 answer

What will the service name of crontab in a Linux machine?

I have a crontab in the same name crontab. Need to check whether its running currently or not. Its placed in /etc/crontab in a Linux machine. I guess its service name is crond. So I tried grep crond. If its wrong please confirm me? How can I check…
Gnik
  • 7,120
  • 20
  • 79
  • 129
0
votes
0 answers

Persistent Object defined by a CronJob on Rails

I have a report that takes too long to be assembled, so I would like to make a CronJob (with rufus scheduler gem) to generate the report after midnight when there´s no traffic on my application. The question is: do I need to save the result of the…
0
votes
1 answer

Run cronjob for missing time periods

I Have crontab set up (on my local MacOSX system) to run a job on a per hourly basis. It runs fine. I am not sure if it is possible, but is there a way that I can run the job for 'missing' hours (in case my computer sleeps or I shut it down)? For…
Arun Shyam
  • 559
  • 2
  • 8
  • 20
0
votes
1 answer

Google App Engine Cron Job not updating Entity

I have a cron job that I want to run that calculates a popularity rating using the Entities in my Cloud Datastore. Entity Excerpt: @Entity public class Theme { @Id private String themeID; public int popularity; public void…
easycheese
  • 5,859
  • 10
  • 53
  • 87
0
votes
1 answer

"Nested" Tasks called within the Action in Symfony 1.4 giving error

I have a bunch of symfony tasks to send different kind of emails. For example, I have a sendMailConfirmationTask, sendMailAlertContactTask, sendMailBlogTask etc... My goal is to have one "master" class : sendMailBaseTask, that will, based on the…
Rommy
  • 497
  • 1
  • 4
  • 16
0
votes
1 answer

Django: absolute URI in batch/cron job

How can you get the absolute uri (with domain and scheme (http/https)) from a batch/cron job? The method build_absolute_uri() needs an HttpRequest, which I don't have in a cron job.
guettli
  • 25,042
  • 81
  • 346
  • 663