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

Cron job to check all folders of mailbox for every users stored in mysql database

I am using javamail to read the mailbox. Now i need to poll to the mailbox and check for any new mails received, sent, drafts saved etc. What is the good way to do that something like how push mail does? For now i am taking imap and gmail but would…
user850234
  • 3,373
  • 15
  • 49
  • 83
0
votes
1 answer

Write cron task from Tuesday 12 pm to Wednesday 12 pm for Celery

I am trying to write a periodic cron task for celery which should execute every hour from Tuesday 12pm to Wednesday 12 pm. That is a 24 hour period but spans two different days. Is it possible to schedule this as a single task like…
aqs
  • 5,632
  • 3
  • 24
  • 24
0
votes
1 answer

Setting a cron job for python script

I want to run the following command for cron job python test.py -sau 0 -bg 200000 -t mcs3245 > g2g.log I have setup a cron job like below 5 0 * * * /local/mnt/workspace/username/scripts/python test.py -sau 0 -bg 200000 -t mcs3245 > g2g.log am…
user1927396
  • 449
  • 1
  • 9
  • 21
0
votes
1 answer

Create custom feed in opencart

I want to create a product feed in opencart. But I have problem, where I can't understand how can I periodically once in 3 hours update that feed. Is there any examples or tutorials how to create automatic processes? Because the solution what I…
skmasq
  • 4,470
  • 6
  • 42
  • 77
0
votes
0 answers

Weird CRON behaviour

I know this might be extremely vague, but not sure why this would be the case, and hope someone might be able to shed some light on this for me. I have a custom script that access Gmail Contacts (authorized), and it syncs the contacts with Gmail,…
Justin
  • 2,502
  • 7
  • 42
  • 77
0
votes
1 answer

How to set CRON using php and run php file with the help of it?

I have two php files. In one php file there is simple html form in which I created some drop down for select time and days for cronjob when user set time and day and submit form then all the drop down values stored in database. Now with the help of…
Indian
  • 645
  • 7
  • 22
0
votes
1 answer

Crontab is not working in plesk after changing the path too

Hi i have tried to run the php file in the plesk by using cronjob by the following commands.But everything is showing the errors. Not executing the php script. i.e., php -q /path to the file shows php command not found.so i have tried to find the…
Kalaiyarasan
  • 12,134
  • 8
  • 31
  • 49
0
votes
2 answers

Can I use cron jobs for my application (needs to be extremely scalable)?

I'm about to undertake a large project, where I'll need scheduled tasks (cron jobs) to run a script that will loop through my entire database of entities and make calls to multiple API's such as Facebook, Twitter & Foursquare every 10 minutes. I…
Danny
  • 993
  • 4
  • 20
  • 39
0
votes
1 answer

Java Cron Jobs Stop for one hour a day? (ex: 10.30 to 11.30)

I am developing java application and in this i wanted to run some method periodically. I have used java schedule to run that method periodically. This is my Cron Expression. public static String CRON_TIME = "2 0/10 0-9.30,11.30-23 * * ?"; /* This…
Pradeep Gamage
  • 585
  • 4
  • 8
  • 21
0
votes
0 answers

cron job on plesk

So far I have tried: php -q /var/www/vhosts/mediaservises.me/site1/ems/admin/cron/cron.php php -f /var/www/vhosts/mediaservises.me/site1/ems/admin/cron/cron.php site1/ems/admin/cron/cron.php But none of them are working on plesk What is wrong in my…
Shahzad Ahmed
  • 13
  • 1
  • 5
0
votes
1 answer

Specifying path to run php file in cron job

I have written a cron job in my Server as below 35 * * * * /home/sites/domain.com/public_html/admin/filename.php I am trying to call a file in http://domain.com/admin/filename.php. In Cron job i navigated to every folder by the way its stored in…
user1093513
  • 127
  • 2
  • 4
  • 12
0
votes
1 answer

Basic crontab not working

I'm trying to create a sample cron job. First I've edited crontab using: crontab -e Then I've added this line in order to create a test folder in my home every minute: 1 * * * * mkdir -p /home//foo/ Then I've made sure that cron was…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
1 answer

How to create a cron job that executes shell script that writes in text file

I have created a Shell Script as below Sample.sh echo "Hi there" I also added cron job in cron tab which is under /etc/crontab as below * * * * * /home/Sample.sh > /home/Sample.txt I have created the Sample.txt file in /home/ directory. I have…
user1093513
  • 127
  • 2
  • 4
  • 12
0
votes
2 answers

How to get Session/Request Object in child class of QuartzJobBean

I am implementing cron job schedular to send periodic email with attachment in a web application. Problem Description : For creating a file (that will be attached with mail) in java code, I need session object to get absolute path of file. For…
Ashish Jagtap
  • 2,799
  • 3
  • 30
  • 45
0
votes
2 answers

Very simple cron job line

I've never written a cron job cmd before in my life, and I want to make sure its right before I run it on my site so nothing messes up. There is a json feed that my script autopost.php grabs and adds to my database. Usually I just point my browser…
Eric Smith
  • 1,336
  • 4
  • 17
  • 32