“Whenever” gem running cron jobs on Heroku

Short answer: use the scheduler add-on: http://addons.heroku.com/scheduler Long answer: When you do heroku run, we spin up a dyno put your code on it execute your command, wait for it to finish throw the dyno away Any changes you made to crontab would be immediately thrown away. Everything is ephemeral, you cannot edit files on … Read more

Test run cron entry

When I want to test my cron jobs I usually set the interval very low and monitor the logs closely. When I am convinced the entry is correct, I set the interval back to a sane value. For example, run job every two minutes: */2 * * * * echo “Hello World” And the I … Read more

How to set cron job URL for CodeIgniter?

Use: php index.php welcome show as command in your crontab. E.g.: 0 * * * * php /home/username/index.php welcome show Source (ver. 2.2.0) http://www.codeigniter.com/userguide2/general/cli.html Source (ver. 3.*) http://www.codeigniter.com/user_guide/general/cli.html Source (ver. 4.*) http://codeigniter.com/user_guide/cli/cli.html

Set Interval in Node.js vs. Cron Job?

My question is are there any disadvantages to running a set up like this compared to a traditional cron job set up? As long as //run the code isn’t a CPU-bound thing like cryptography, stick with 1 node process, at least to start. Since you are requiring request I guess you might be making an … Read more

Using WGET to run a cronjob PHP

You could tell wget to not download the contents in a couple of different ways: wget –spider http://www.example.com/cronit.php which will just perform a HEAD request but probably do what you want wget -O /dev/null http://www.example.com/cronit.php which will save the output to /dev/null (a black hole) You might want to look at wget’s -q switch too … Read more