Usage of crontab in Solaris

Source: Internet
Author: User

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

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.