Help - Search - Members - Calendar
Full Version: Cron Job
Linuxhelp > Support > Technical Support
anthonyhends
What is cron job and will it benefit me if I use it on my website?
michaelk
cron is a time based scheduler. You can automatically run tasks and programs based upon time and date. Typically it is used for system maintenance and administration although it can be use for any purpose where you need to run a program at regular intervals.
If you need to regular run a program or regularly perform some task on your website then it could be of some benefit.
yournix
QUOTE (anthonyhends @ Dec 16 2016, 11:28 PM) *
What is cron job and will it benefit me if I use it on my website?


One good use of cron for a web server is using cron for routine back-ups. For example, schedule back-ups to be copied on another server, if something dies you'll have a recent copy of it.
You can also schedule a task to run after a reboot if it were to go down for any reason. For example, let's say rebootscripts.sh contained useful commands that are vital in running your website.
In cron:
@reboot /scripts/rebootscript.sh
andyson
submitted.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.