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

Create Cron Jobs in TYPO3

My extension needs to send in emails to different users everyday at a specific time mentioning few details. How do I perform cron jobs in TYPO3? Typo3 Version 6.1.1. Extension is built on extension builder.
dora
  • 1,314
  • 2
  • 22
  • 38
0
votes
1 answer

Crontab and python script

My python script: badlink.py (i used http://wummel.github.io/linkchecker/) #!/usr/bin/python import os os.system('linkchecker -ocsv -Fcsv/badlinks.csv www.mysite.com') My crontab task */2 * * * * /opt/badlink.py the problem is that If I run…
tree em
  • 20,379
  • 30
  • 92
  • 130
0
votes
1 answer

Server alarm bell

I would to implement a simple functionality on my server: I would to know when a my process that it is running on the server is active or no. If this process is not running I would to send an e-mail to administrator. To implement this functionality…
Safari
  • 11,437
  • 24
  • 91
  • 191
0
votes
1 answer

Cron Job every second week day

I need a cron job to run every second weekday for example. If cron job last ran on a Thursday it should run on the next Monday. The re-run on Wednesday and again on Friday again and on Tuesday and again on Thursday bring it back to the start.
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
0
votes
1 answer

Implementing a script from Drupal VoIP in hook_cron

I have a voip script located below $call= new VoipCall(); $phone_number='phone_number'; $text="example text" $script= new VoipScript('example'); $call->setScript($script); $success=voip_text($text, $call); Which I am trying…
user1710794
  • 105
  • 1
  • 6
0
votes
1 answer

can't get the right cron job timing

i'm trying to do some stuff automatically every 8 Weeks, so i had open a new user crontab like this one: crontab -e 0 9 * */2 1-5 do_this_stuff # do it every 2 month on monday till friday at 9:00 am This should do the job every 2 month on monday…
Viktor
  • 623
  • 4
  • 10
  • 25
0
votes
0 answers

Run different cron jobs on different time

I have two cron jobs, first one should be executed every minutes and the second one should be done every two minutes. In my crontab file */1 * * * * /home/fileserver/Desktop/Test/DBBackgrounder.exe; */2 * * * * echo "Date Successfully Updated:…
Seehyung Lee
  • 590
  • 1
  • 15
  • 32
0
votes
2 answers

How to call a specific url at a specific hour with Cron?

I need a function to be triggered by the user when simply clicking on a button. This will set a job to be executed at a specified time (let's say 9am) and will eventually be repeated periodically. That would be handled by PHP So i've though about…
Miles M.
  • 4,089
  • 12
  • 62
  • 108
0
votes
1 answer

Cronjobs: Is there a way to set scope of shell variables only once for all cronjobs?

I'm wondering if there is an more elegant solution by defining the scope of my shell variables only once? (export QUERY_STRING;) Here are a couple of my crontasks, notice that I'm currently exporting each shell variable for each task: 2 0 1 * *…
am_
  • 2,378
  • 1
  • 21
  • 28
0
votes
3 answers

Best method for Cron in CakePhp

I am currently working on a project in CakePhp in which Cron job is required for sending emails & other activities, i am little bit confuse related to this if i created CRON using core php methods in custom controller then it work fine & also if i…
M_A_K
  • 378
  • 3
  • 16
0
votes
1 answer

how to make sure sql table not locked / stop concurrent crons

I have a cron job running every few minutes that goes through the first 50 items on a 'to do' list, runs a script on each item and marks it as run in the database. This was working well until the table that marks off the item as complete got locked…
fiscme
  • 422
  • 1
  • 6
  • 20
0
votes
2 answers

Cron job don't execute specific php script

I setup a cron job (in Virtualmin based of Webmin) for execute a simple test script and it work well. The cron command used is: /usr/bin/php -q /home/myuser/domains/mysite.com/public_html/mailtest.php The url is: www.mysite.com/mailtest.php The…
dotcom22
  • 249
  • 1
  • 7
  • 19
0
votes
0 answers

Setting up cron job in a unix server via cpanel

I'm actually trying to test running cron jobs in my Unix server (via Cpanel 11) I've been trying to execute WGET. My command looks like this : 30 11 * * * wget http://www.mydomain.com/myscript.php The server tries to run the job every 5 minutes.…
Krish
  • 917
  • 4
  • 10
  • 23
0
votes
1 answer

PHP script export new entries to SQL table and overwrite file

I am trying to create a php script that will be run by a cron job on a nightly basis. The database holds entries from a contact form. The idea is to run the php script (via cron) and have it export any new entries from the database from that day…
Mark
  • 488
  • 3
  • 12
  • 30
0
votes
1 answer

Trying to start a cron job on serversfree

I'm trying to add a cron job on my server, that is hosting here http://partisscan.bugs3.com/. The provider for that is serversfree http://www.serversfree.com. It is realy good but i can't make a cron job. I want my php file…
gabrjan
  • 3,080
  • 9
  • 40
  • 69