DelphiFAQ Home Search:

How do I set up a cron job?

 

comments8 comments. Current rating: 4 stars (4 votes). Leave comments and/ or rate it.

Question:

How do I set up a cron job? (compare to the Windows scheduler)

Answer:

You can set up cron jobs with the "crontab" command from the shell.
  • crontab -l will show you your currently set up cron jobs on the server.
  • crontab -r will delete your current cron jobs.
  • crontab -e will allow you to add or edit your current cron jobs by using your default text editor to edit your "crontab file".

If your web host does not allow you to use the crontab command and / or you do not want to (or cannot) edit the crontab file (which is usually /etc/crontab, then you might find that there are subdirectories

etc/cron.daily
etc/cron.hourly
etc/cron.monthly
etc/cron.weekly


where you can add your job as a shell script in the appropriate directory. (This is the case if your host uses the ensim environment.)
This still requires that you have write privilege in these directories.


Content-type: text/html

Comments:

2009-04-25, 19:42:43   (updated: 2009-04-25, 19:44:06)
anonymous  
rating
You can try a lot of free external cron jobs services: http://www.setcronjob.com onlinecronjobs cronme etc.
2009-08-30, 04:07:49
anonymous  
2009-12-16, 11:23:59
anonymous  
Best free cron job service with the most features: http://cronless.com
2012-11-12, 05:32:12
coach001 from United States  
2013-05-04, 22:18:18
[hidden] from China  
rating
alternatively, you can use online cron job http://www.easycron.com.
2013-05-04, 22:19:56
[hidden]  
rating
alternatively, you can use online cron job: http://www.easycron.com.
2017-01-10, 14:35:58
anonymous from Indonesia  
JIKA ANDA BUTUH ANGKA TOGEL GAIB (_SGP,HKG,MLYS,SYD,THLND,TAIWAN_)
YANG DI JAMIN 100% TEMBUS SILAHKAN
Call/Sms Di No_o82_319_2o8_865_ AKI NUGROHO
Insya Allah Beliau Akan Siap Membantu Menyelesaikan Smua Masalah Anda,.
(_..KUNCI KESUKSESAN..._)
1. Pikiran Yang Positif,
2. Keyakinan Yang Bulat
3. Percaya Bahwa Kita Akan Berhasil
.
2017-06-02, 05:15:59
Caren from Taiwan  
rating
Nice blog right here! Additionally your site a lot up
fast! What web host are you the usage of? Can I
get your affiliate hyperlink in your host? I desire my website loaded up as quickly as yours lol

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: