The use of crontab in Solaris is different from that in Linux.
# After bash
First, you must define the system environment variable editor.
# Export editor = vi
Then start editing
# Crontab-e edit the crontab of the root user
This file has six fields, the first five fields are the scheduling time, respectively:
1. Minute
2. Hour
3. Day of month
4. Month
5. day of week
The first field is the command to be executed.
After editing, save and exit.
# Crontab-l root can view the crontab task list of the root user.
To execute a task once every 20 minutes, you can write it as follows:
0, 20, 40 *** command
To execute a task once every five minutes, you can write it as follows:
0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 *** command
Crontab in Solaris is different from that in Linux.
*/5 indicates every 5 minutes
*/20 indicates every 20 minutes
Solaris does not.
For reprint, please indicate the source and original article links:
Http://blog.csdn.net/xiangsir/article/details/8570498