To create a cron service for the current user
1. Type CRONTAB-E edit crontab service file
For example the contents of the file are as follows (visit Baidu Two o'clock in the morning every day):
* 2 * * * * Curl http://www.baidu.com
Save the file and exit
* * * * * This field allows you to set when to execute the script
Curl Http://www.baidu.comh This field to set what you want to do.
2.
Cron is a timed execution tool under Linux that can run a job without human intervention. Since Cron is a built-in service for Linux, it does not automatically get up, and you can start and shut down this service in the following ways: /sbin/service Crond Start//Startup service
/sbin/service Crond stop//Shut down service
/sbin/service crond Restart//Restart service
/sbin/service Crond Reload//Reload configuration
2. See if the Crontab service under this user was created successfully with the CRONTAB-L command
Regular access to a URL under Linux