Simple shell Multi-process (running in the background)

These two days, because the work needs to do some of the process of work, look at some of the online examples, mostly through the way of pipeline files to achieve, and then think about it without so much trouble ... The following is a simple

Win2003 Wscript.Shell and Shell Component Security Chapter _win Server

Uninstall and remove the WScript component Wscript.Shell can invoke the system kernel to run DOS basic commands, which is harmful to system security. We're going to uninstall and remove the component to prevent this kind of trojan from

3 ways to get native IP addresses in a shell script _linux shell

Method One: Copy Code code as follows: /sbin/ifconfig-a|grep inet|grep-v 127.0.0.1|grep-v Inet6|awk ' {print $} ' |tr-d ' addr: ' Or /sbin/ifconfig|sed-n '/inet addr/s/^[^:]*:\ ([0-9.] \{7,15\}\). */\1/p ' Method Two:

Shell string comparison Equality, inequality method summary _linux Shell

#!/bin/sh #测试各种字符串比较操作. #shell中对变量的值添加单引号, the difference between the hot quotes and the not added: it is irrelevant to the type, that is, not adding quotes into the string type, #单引号不对相关量进行替换, if the $ symbol is not interpreted as a variable

Introduction to Shell command-line parameter usage _linux shell

A shell script, what is its command parameter?First, shell scripting and scripting like Python can use parameters as well;Secondly, the shell parameters are divided into positional parameters and internal parameters;Where, positional parameter: is

Linux traffic monitoring shell script _linux Shell

Recently more busy, for a long time did not update the blog, today is not busy writing a traffic monitoring script. The test has passed under the CentOS, has the need friend to try, has the bug or needs to add other function words can leave a

Shell Script Monitor Site page normal open _linux shell

Now in order to save money, I used a shell script, simply write a monitoring. By Curl a fixed page of 200 status code, if it is 200, said the site is normal, if not 200 automatically restart the site, and then send mail to QQ mailbox. QQ on their

Shell script Implementation bulk download network picture code sharing _linux Shell

Recently, in order to do a weather forecast project, need to download some weather icons from Yahoo, but because of more than 80 icons. The icons are stored on the Yahoo image site. Thunder does not support HTTPS downloads, although it can be

Nagios distribution file Implementation code _linux shell

Nagios is an open source free network monitoring tool, can effectively monitor Windows, Linux and UNIX host State, switch routers and other network settings, printers and so on. When the system or service status is abnormal, send an email or SMS

Shell Script Implementation example of automatic sending mail _linux shell

1, edit the user's home directory of the. muttrc file, set the letter environment. Copy Code code as follows: # CAT/ROOT/.MUTTRC Set Envelope_from=yes Set from=owinux@sina.cn Set Realname= "Owinux" Set Use_from=yes Set Rfc204

Shell Common redirect instance explain _linux Shell

Each open file is assigned a file descriptor. stdin (keyboard), stdout (screen), and stderr (Error message output to screen) are the file descriptors 0, 1, and 2 respectively. The descriptor 3 to 9 is retained for the extra files that are being

Shell scripts define variables and reassign _linux shell

The shell supports custom variables. Defining variables When you define a variable, the variable name is not a dollar sign ($), such as: Copy Code code as follows: Variablename= "Value" Note that there can be no space

Intelligent monitoring automatically restarts the Apache server's shell script _linux shell

With the need to monitor some of the Apache servers that require high availability, in addition to professional monitoring and alerting devices, it is a good idea to write a script that automatically monitors Apache status on the Apache server at

5 ways to calculate the length of a string in a shell script _linux shell

Sometimes in the Linux operating system to calculate the length of a string, through the query data to the current shell to get the length of the string of various methods to share here, the method is as follows: Method 1: Use the wc-l commandWc-l

Implementing the flying text effect in shell _linux shell

You must have seen the effect of flying words on a Web page, but how do you implement the Echo string in a Linux system, especially in Bash command line mode, with flying effects? This effect is not practical, but occasionally to amuse themselves

Circular statements in the shell for, while, until instances explain the _linux shell

In a programming language, a looping statement is one of the most basic syntaxes, and is no exception in the shell (here is bash).This includes the For/while/until loop, as well as the syntax instance of the variable increment. The loop statements

How to determine if the input is a number in the shell

In the shell we often have to face a problem is how to judge my interactive front-end, the user input is a number it? I'm going to have two ways of doing this here, so just say it here today.The first type: SED formatFirst: Let's start with the

Saltstack+shell Automated Distribution Scripts

Purpose: Use the Saltstack tool to deploy batch servers and automate the installation (uninstall) of services (such as MySQL).[[email protected] ~]# ll total dosage 304228-rw-r--r--1 root root 311516309 March

Shell traversal of all files including subdirectories

1. Code is simple, but difficult to verify, not as good as Python understandingIt is recommended to edit under notepad++.2. Note the ' Yes ' tab key that references the Linux command.3.if[] HereError:syntax error near unexpected tokens ' then 'Cause:

Shell Utility case: Batch generation of random character filenames

The code is as follows:1#!/bin/SH2 #################################################################3 # Author:91coder4# blog:www.cnblogs.com/91coder5 #################################################################6 7 # Create a

Total Pages: 541 1 .... 376 377 378 379 380 .... 541 Go to: GO

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.