automating tasks
cron is a linux tool that automates when and with what frequency a certain script or program is executed.
the crontab file contains a list of rows, each of which represent a different script/program to be executed. each row contains six columns representing the minute, the hour, the day of the month, the month, the day of the week, and the path to the script/program.
the command crontab -e opens up the crontab file in the vi text editor from where it can be appended to very easily.
in my case, i want to run a PHP script every 5 minutes:
*/5 * * * * /home/myname/myscript.php
the crontab file contains a list of rows, each of which represent a different script/program to be executed. each row contains six columns representing the minute, the hour, the day of the month, the month, the day of the week, and the path to the script/program.
the command crontab -e opens up the crontab file in the vi text editor from where it can be appended to very easily.
in my case, i want to run a PHP script every 5 minutes:
*/5 * * * * /home/myname/myscript.php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home