Linux System Monitoring shell script and linuxshell script
The Code is as follows, which implements some common monitoring variables in Linux and shares them with you @.·.@
#=============================##Filename=system_monitor.sh#Author:foxsir#Date:2016-02-15#=============================##!/bin/shclearif [[ $# -eq 0 ]]then#Define Variable Reset_terminal Reset_terminal=$(tput sgr0)#Check OS Type OS=
SHELL script-full explanation of tr command usage and features, shell script-tr usage
Directory:1.1 Introduction1.2 tr ing1.3 completely matched replacement1.4 compressed symbols1.5 Delete symbols and supplements
1.1 Introduction
Tr is mainly used to map the result set, compress the character, and delete the data read from the standard input. First, it sorts the standard input for reading and then wraps it
Shell script -- cut command, shell script -- cut
Directory:1.1 option description1.2 filter by field1.3 Use -- complement1.4 split by byte or character1.5 Use -- output-delimiter1.6 specify the range in cut
1.1 option description
The cut command divides a row into multiple columns according to the specified delimiter. Its weakness is that it is difficult to handle repeated multiple separators. Therefore, it
Shell script-automatic DNS deployment and shell script dns
For details, see:
(1) Play with me the Linux Network Service: DNS service -- BIND (/etc/named. conf,/var/named) setting implementation and Explanation
1 #! /bin/bash 2 IP="10.10.10" 3 RIP="10.10.10" 4 DN="gr.org" 5 Name="10.10.10.10" 6 7 cat >> /etc/named.conf
COM and its successor. Net have a feature that can be repeatedly written in other languages.ProgramSet. In SQL Server 2005, only VB. NET can be used for script tasks. Here, we can use an assembly written in any. NET language.
Use the Assembly to reuse the already writtenCodeYou may have written the data verification method in your program. Now you can reuse the code in the package. Writing the tested code again is meaningless.
To use an assembly in
MySQL database Regular automatic backup script, mysql database scriptThe most important thing for a Web system is the security and integrity of the database.It is very important to back up data regularly. Do not be lazy on this issue. If your important data is lost, it will make you cry.Export table structure and data mysqldump-uroot-pmypassword -- databases fansunion -- result-file =/var/www/backup/fansunion-table-and-data. SQLExport only the table s
Original: Use a script to get the ip address of the Local Machine and the ip address of the script
After receiving the course class, my old brother Kwai Hua started the course. Some of the simple things today can be graffiti or boring.
I want to get an IP address. It is very common in our lives. Today I will introduce you to my six methods of using scripts to get an IP address.
Many people want to ask me
Weblogic STARTUP script v2.0 and weblogic script v2.0Change location
1. The application in the test is UF NC6. Because the NC cluster has the concept of master, non-master nodes depend on the master node, in this case, the master must be determined to start normally first, to start other nodes.
After the project test, it is found that sometimes other nodes are started after the master port is opened, and so
Shell script login template description, shell script Template
Write notepad and change the file suffix to sh
#! /Usr/bin/CT
# Log on to ssh
# Use the ssh server spawn in combination with Alibaba CT and send
Spawn ssh root @ ip
# Expectation
Reset CT "password :"
# Enter the password and click Enter \ n
Send "tktktktkt \ n"
# Izhp1_z74iw8bsizduk8mdz
CT "izhp1_z74iw8bsizduk8mdz :"
# Input ls/
Send "ls/\ n"
#
PHP uses the shell background to run the PHP script and obtain the ProcessID code of the script. For more information about php, see.
The code is as follows:
$ Command = '/usr/bin/php/pub/www/u111/job/Crondo/auto_collector.php ';$ Process = proc_open ($ command, array (), $ pipes );$ Var = proc_get_status ($ process );Proc_close ($ process );// Pid is the process ID. I have not understood why I want to
CharSet= "utf-8" >
Your browser does not support JavaScript, please change the view
href= "javascript:confirm (' Are you sure you want to enroll for a JavaScript course?") ') ' > registration
onclick= "javascript:alert (' Hello World ');" >clickme
Tex
How to run the crontab timing script and cygwincrontab script in cygwin
When cygwin is used, it is natural that you want to handle more tasks similar to linux, and then the scheduled task crontab is indispensable. You can see a lot of online tutorials and it is not easy to run a test on your own, the following is a record of my installation process for your reference!
1. You are willing to run cygwinat firs
Python accesses pure IP database script sharing, pythonip database script
The project has such a requirement. The IP address can be used to determine whether the client is China Netcom or China Telecom. I took a plain-text IP address from my colleague and wrote a small program in Python. The following is the source code:
#!/usr/bin/env python# -*- coding: utf-8 -*-from bisect import bisect_LIST1, _LIST2 = [
True when file exists and is a symbolic link file, this option is not valid on some old systems-K returns True when a file or directory specified by pathname exists and the "sticky" bit is set-P Returns True when file exists and is a command pipeline-R Returns True when the file or directory specified by pathname is present and readable-s when file size is larger than 0 o'clock returns true-U returns True when the file or directory specified by pathname is present and the SUID bit is set-W Retu
One, separate backup1. Classic backup of the whole library: backup as compressed backupset database include current controlfile plus archivelog Delete all input;2, tablespace:backup tablespace name;3, Data files: Backup datafile N; (N: Specific data file number select File_name,file_id,tablespace_name from Dba_data_files;)4, Control files: Backup current controlfile, or backup database include current controlfile;5. log files: backup archivelog all; or database plus archivelog;6, Parameter file:
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.