Regular access to a URL under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.