CRON job / command to run URL address every 5 minutes

minutes 5 every address URL run to command / job CRON

The following command displays previously created cron jobs:

crontab -l

 

Create a new cron job and understand the syntax.

The following command opens us the cronjob file with the default editor:

crontab -e

 

If no task was created in the file is only one line with the short form, what each column means.:

# m h dom    mon dow    command

 

 

with wget

*/5 * * * * wget https://blog.mehl-web.de

 

with curl:

*/5 * * * * curl https://blog.mehl-web.de

*/5 * * * * curl --request GET 'https://blog.mehl-web.de/check.php?param1=1&param2=2'

 

to check if it was succesfully:

open /var/log/syslog

find your job:

Aug 10 06:30:01 RechnerName /USR/SBIN/CRON[31301]: (root) CMD (wget https://blog.mehl-web.de)



Comments are closed