Cron command set on Linux

Source: Internet
Author: User

Java code
About Cron in linux
 
Run the following command to view the current user's cron list:
Crontab-l
 
Run the following command to edit the cron list:
Crontab-e
 
Run the following command to view the Cron service status of the current server:
Svcs cron
 
The state is online, so the cron service on the server is on.
[JPCRONUAT/zone root @ JPCRONUAT/] # svcs cron
STATE STIME FMRI
Online Sep_09 svc:/system/cron: default
 
As long as the cron service on the server is enabled, you do not need to restart the cron service if you modify information in the cron list (for example, add cron or delete cron.
 
Start the cron service on the server:
Service crond start
 
Disable the cron service on the server:
Service crond stop
 
Restart the cron service on the server:
Service crond restart
 
Reload the Configuration:
Service crond reload

Author duqiangcise"
 

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.