To be honest, I really don't like Solaris. It's so uncomfortable to use it. The key is that it won't be used.
In Linux/FreeBSD, the syntax for viewing the current crontab task is crontab-l, and the task for editing a user is crontab-u
However, in Solaris,
Second * field: 1 ~ 23 indicates the hour
Third * field: 1 ~ 31 indicates the day
Fourth * field: 1 ~ 12 indicates the month.
Fifth * field: 0 ~ 6 indicates the Fifth Command Field in the week (0 indicates Sunday): If you want to execute a command once every 20 minutes, you can write it like this:
To execute a task at, 40 *** command every five minutes, you can write it as follows:
0, 5, 10, 15, 20, 25, 30, 35, 40, 4, 50, 55 *** command to execute a task every minute, you can write it as follow
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 userThis file has six fields, the first five fields are the scheduling time, respectively:1. Minute
1. VMware Tools installation and display settings
Command:
Cp/cdrom/vmwaretools/vmware-solaris-tools.tar.gz/export/home/xxxx
Gunzip vmware-solaris-tools.tar.gz
Tar xvf *.tar
A folder that generates a "Vmware-tool-distrib"
Enter this folder, perform the vmware-install.pl, and then a long set of settings after installation, the mouse can be free to click, Solaris
Cron mechanism
Cron allows the system to perform a specified work at a specified time, and we can use the CRONTAB directive to manage the cron mechanism
Crontab parameters
-U: This parameter allows us to edit other people's crontab, if not add this parameter, will open their own crontab
Solve the problem of Internet access and remote logon in Solaris, and perform remote logon in solaris.
Reference http://www.jb51.net/ OS /Solaris/1656.htmlSolution to display garbled characters on solaris
Symptom:
Use the command: LANG = zh; export LANG. Or LANG = C; export LANG
Of course, we can also set them all. L
: RootPassword:
Nov 21 15:22:57 zone01 login: Root Login/dev/consoleSun Microsystems Inc. SunOS 5.10 generic January 2005# Ifconfig-Lo0: 1: Flags = 2001000849 Inet 127.0.0.1 netmask ff000000Pcn0: 1: Flags = 1000843 Inet 10.11.11.94 netmask ffffff00 broadcast 10.11.11.255# HostnameZone01
In this way, you can log in and use it independently as a Solaris 10 virtual machine.
Ping 10.11.11.94 from outside.
Note:
When creating the zone directory, you mu
First, ensure that the software packages installed in solaris meet the requirements (refer to the basic requirements of the official installation of SolarisStudio12.3, at least the necessary packages must be installed and developed ).
Because it is installed in a virtual machine, the pre-allocated swap space is relatively small, you need to temporarily increase the swap space, refer to Solaris temporary inc
Article Title: Solaris Study Notes: About the Solaris syslog mechanism. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The syslog mechanism is responsible for sending and recording the information generated by the system kernel and tools. It consists of the syslog () ca
Solaris service management, solaris Service
Remote logon Protocol
Telnet \ ssh. Of course, we can check who has logged on to my system and who can use ftp to record logs.
1. SMF: Service Management Tools
Advantages: Automatic Recovery of accidentally terminated Services supports service dependencies. A service can have multiple instances, provides command line management tools, and supports concurrent start
Solaris software manages FTP and solaris software ftp
Install Common Software
Relationship between applications and system commands:
The system command file is located under/bin/sbin or shell commands to complete basic management of the system. Generally, it is run on the Character operation interface; it generally includes command words, command options, and command parameters.
The application file is loca
Putty is a very useful open-source terminal software. Supports most remote logon protocols.
However, in addition to terminal, Solaris does not seem to have terminal software such as securecrt and putty.
Putty is open-source and the code can be downloaded in the http://www.putty.nl/download.html.
The following describes how to compile Putty:First, download to putty0.6, go to the Unix directory, and run./configureThis will automatically generate makefi
" means to perform every two hours. The forward slash can also be used with the asterisk, such as */10, which, if used in the minute field, means that it is executed every 10 minutes.
* * * * command
Time-sharing and Lunar Week commandThe 1th column represents minutes 1~59 per minute with * or */1The 2nd column represents the hour 1~23 (0 for 0 points)The 3rd column represents the date 1~31The 4th column represents the month 1~12The 5th list of the week 0~6 (0 for Sunday)6th column the command t
Crontab for linux commands and crontab for linux commandsCron is a built-in service in Linux. Run the following commands to start, view, and disable the service.
Service cron start // start service cron stop // close service cron restart // restart service cron reload // reload and configure service cron status // view service status
The cron global configuration file is in the/etc directory:
Cron. d/The sy
Linux crontab command details, crontab command details
Crontab is a convenient command to execute a task in a scheduled (Cyclic) manner on unix/linux systems. The linux system is controlled by the cron (crond) System Service. The Linux system has a lot of planned work, so this system service is started by default. To understand the
a crontab task, Ctrl_d end4. crontab filenameA task list file that is crontab as filename and loaded intoFormat of crontab file:The rows in the crontab file consist of 6 fields separated by a space or TAB key between the different fields. First 5 fields specify when the com
Statement: This article reproduced from: http://www.taoyutaole.com/thread-1436-1-3.html
How to Use crontab in Linux, and how to use crontab.
As a website O M engineer, you often have to deal with crontab. You can use crontab to automatically run scheduled tasks to achieve automated O M. In my daily work, I also deep
Crontab Scheduled Task configuration record, crontab task
First, preface
Today, simply record the configuration of the crontab
Ii. Catalogue of Crontab
/etc/crontab file This is the scheduled task for the system to run/var/spool/cron directory user-defined
)
Hour (0-23)
Date (1-31)
Month (1-12)
Day of the week (0-6, 0 indicates Sunday)
The 6th fields are strings to be executed at the appropriate time
Example:
# MIN HOUR DAY MONTH DAYOFWEEK COMMAND
#06:10 every morning
10 6 **** date
# Every two hours
0 */2 *** date (solaris 5.8 does not seem to support this method)
# Every two hours from PM to am, am
0 23-7/2, 8 **** date
# Am on the 4th day of each month and from Monday to Wednesday of each week
0 11 4
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.