Windows 7 introduces a new concept of a library, a new entry point for user data. Users can easily find and manage their data in the form of collection data, and this data may be in several different locations on the computer. This library replaces
This article mainly introduces the shell script implementation to monitor the running state of the specified process, this article directly gives the script code, the need for friends can refer to the following
In the previous blog, once wrote the
Often toss WordPress friends will usually build a local environment, debugging finished and then released to the line, as to how to install in the local WordPress, this can refer to my previous write a "relaxed 10-step local installation of
command options files Some variables related to the arguments passed to the shell: the number of $# command line arguments $? The return value of the calling command $$ the process number of the current process $! The process number of the last
e-mail server is placed in the intranet map of the company IP, open port, has been the constant violence to crack, depressed dead. One of the IP has 6 w many times Ah, thereby using the script to mask IP access.
1. The script is as follows:
#!
#!/bin/bash while
read line
do
#杀掉所有的python程序.
Killall python2
#用读取到的行的参数作为输入执行 *******test.py python program and records the result to a file in the row's parameter 110ut, which is a row parameter
Found that three symbols are useful when writing scripts. One is the pipe command "|", one is executing the command "&" in parallel, and the other is "&&"
The so-called pipe, acting as a function of the connection between the front and back two
Today only found that the original position variable can also play so cool!!
This is a file directory backup using the location variable:
#!/bin/bash
Date= ' Date +%f '//date output from year to month
Tar Czf $ $DATE. tar.gz $ >/dev/null 2>>/opt/
Shell file Start
The shell file must start with the following line (must be on the first line of the file):
#!/bin/sh
The symbolic #! is used to tell the system that the parameters behind it are the programs used to execute the file. In this
One, analysis Apache log
1, there is a document SHELL.SH, the contents are as follows:
[Root@test3root] #catshell. sh
Http://www.baidu.com/index.html
Http://www.google.com/index.html
Http://www.baidu.com/get.html
Http://www.baidu.com/set.html
Execute the "nano function.sh" command to create a new shell script file with the name "function.sh".650) this.width=650; "class=" Exp-image-default "alt=" How to write Function "src=" in shell scripts http://f.hiphotos.baidu.com/exp/w=500/ Sign=7148
Today read the Old Boys Education blog http://oldboy.blog.51cto.com/ in a shell implementation of Nginx reverse proxy back end Realserver Health check of the article, According to one of the students Friends of the idea of writing a
Http://www.cnblogs.com/puresoul/p/4915350.htmlFirst, what is the bean Shell
BeanShell is a scripting language that conforms fully to the Java syntax specification and has its own syntax and methods.
BeanShell is a loosely typed
string-to-integer type! This requirement should be common in programming languages, and it's too cumbersome in the shell. Someone asked why the conversion? The problem I encountered is that the number of parameters is $ #需要进行整型运算, while $ #取出来的却是字符串,
Previous wordsThe front-end engineer may not be able to use shell commands. But when you learn git, there are a lot of things that you need to do with a shell command in addition to GIT commands. Therefore, the shell command needs to learn and
1. Three ways to execute shell scripts:1.1 Make the file executable with executable permissions and run the file directly.1.1.1 Add x permission to a file1.1.2./test.sh1.2 Invoking the command interpreter execution program directly1.2.1 Source
Write the background of this script: because more and more machines are being managed, each login machine can display the information of the corresponding machine to prevent mis-operation.At the same time, the individual working environment has many
The use of BeanShellIn this introduction, the use of BeanShell preprocessor, other beahshell can be analogous. In this we use the Beahshell call ourselves to write the tool class, the tool class implements the password encryption, decryption
The #!/bin/bash# command matches the host execution Module script path and must be placed in the Salt directory under the source hostname modified hostname #salt tt_ld_lm_lc_1 cmd.script salt:// init/rename.sh ' tt_ld_lm_lc_1
There are many ways to open the file, but I learned that the use of more is the above--, in order to prevent forgetting later, the first to write down the understanding.1. ShellThis read a lot of web pages, the most reliable way to use:Shell ("" " )
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