How to create Cron Jobs (Scheduled Taks) in Windows Machine ?

Posted by Unknown Rabu, 02 Januari 2013 0 komentar
We are here to setup Cron Job in Window Based machine! For Linux/Unix/Mac.

This can be useful when you hosting provider doesn't support for Cron Jobs and also helpful when you are using Window server to host your Web Application/Site.

Note: I am using Windows 7, But for other version it should be something similar only.

Using Schedule Taks - UI Based

  • Open Control Panel
  • Go to Administrative tools
  • Select Schedule Task
  • General Tab, Give a name to your scheduled task. e.g. Test Cron Job
  • Select Trigger Tab, Click "New", Select timings for executions of Cron Job
  • Select Actions Tab, Click "New", Select Program to execute, in our case we want to run Cron Job. So we will require to run browser. So select Firefox, Chrome, IE etc.
  • Suppose Cron URL is http://example.com/cronjob.php Action should be like "C:\Program Files\Internet Explorer\iexplorer.exe" "http://example.com/cronjob.php"
  • Click Ok! It's Done.

Using Schedule Taks - Command Line

  • Open command prompt
  • Fire below command to setup Cron Job hourly
schtasks /create /tn "Drupal Cron Job" /tr "C:\Program Files\Internet Explorer\iexplorer.exe http://www.example.com/cron.php" /sc hourly


For more options see help of schtasks command. fire schtasks/? to see help of command


For any reason if you don't wish to open Browser you can use Wget or cUrl 

Using Wget
  • Install Wget from SourceForge
  • Follow all the steps to above for Schedule Taks, instead of internet explorer select wget.exe
Using cUrl
  • Install cUrl from SourceForge
  • Follow all the steps to above for Schedule Taks, instead of internet explorer select curl.exe
How to setup Cron Job in Linux/Unix/Mac Machine. 

Thanks for Reading the Article!

Follow me @ Just PHP




TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How to create Cron Jobs (Scheduled Taks) in Windows Machine ?
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://apk-zenonia5.blogspot.com/2013/01/how-to-create-cron-jobs-scheduled-taks.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of apk zenonia 5.