Dominique De Cooman
Published on Dominique De Cooman (https://dominiquedecooman.com)

Home > How to add a cron job for drupal on linux server

Dominique De Cooman
Wednesday, January 27, 2010 - 22:00
linux [1]
cron [2]

In the command line type

crontab -e

Press your insert key.
Insert a line, run every five minutes for example (more on syntax http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5 [3])
5 * * * * /usr/bin/lynx -source <a href="http://yoursite.com/cron.php
">http://yoursite.com/cron.php [/geshifilter-codes]

And now exit: press escape and type ":exit"
By exiting you are saving and you wont be prompted.


Source URL: https://dominiquedecooman.com/blog/how-add-cron-job-drupal-linux-server

Links
[1] https://dominiquedecooman.com/blog-topics/linux-0
[2] https://dominiquedecooman.com/blog-topics/cron
[3] http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5