Java code about Cron in linux to view the current user's cron list command: crontab-l to edit the cron list command: crontab-e to view the current server's Cron service status command: svcscron is as follows: the state is online, so the cron service on the server is on. [JPC...
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"