Ping discovers the shell code of the switch alarm _linux shell

Copy Code code as follows: #!/bin/bash ping= ' which ping ' Date= ' Date +%y%m%d%h%m ' Tail= ' which TAIL ' Log=./ping$date.log hosts= "selboo.com.cn 221.130.191.97" count=200 For MyHost in $HOSTS Todo count=$ (ping-c

Background real-time streaming file shell script _linux Shell

Copy the files under the Bill folder to a certain rule (file name parity) under the Bill1,bill2 folder.Update BILL1,BILL2 Processing Progress tab (update File.max)File3 is the label for the current latest file in the bill directory and will normally

An interoperable concurrent ping detection script _linux Shell

Copy Code code as follows: #!/bin/bash #********************************# #2013 -01-11 17:00:00 wanggy Exp # #note:p ing Monitor # #********************************# Set-u Ping_fun () { d_network=192.168.1 Echo-n "Input" network

A shell-written ping function _linux Shell

Copy Code code as follows: #!/bin/bash #2013 -01-06 14:00:00 wanggy Exp #note:p ing Monitor Set-u #set-X Ping_fun () { d_network=192.168.1 Echo-n "Input" network (default $d _network): " Read Network : ${network:= $d _network} echo

Using shell.application to get picture resolution _vbs under VBS

Simple Google a bit, not fruit, so sent an email for advice, and soon have a reply. Copy Code code as follows: Path = "C:\test.jpg" arr = Split (Path, "\") FileName = arr (Ubound (arr)) FolderPath = Left (path, Len (path)-Len (FileName)-

Extract Oralce-day alert log shell script code _linux Shell

Shell script to extract alert log for Oralce day Copy Code code as follows: #/bin/sh #get Alert of Everyday #then name of file is everyday_alert.sh Dir= "/oracle/admin/bbdz/bdump" num=$ (cat-n ${dir}/alert_bbdz.log | grep "'

Two shell scripts for backup databases _linux shell

A shell script that backs up a database Copy Code code as follows: #!/bin/bash #指定运行的脚本shell #运行脚本要给用户执行权限 Bakdir=/backup Month= ' Date +%m ' day= ' Date +%d ' Year= ' Date +%y ' Hour= ' Date +%k ' min= ' Date +%m '

Linux shell implementations two ways to get user input to a single character in a specified range _linux shell

Method One: Copy Code code as follows: Echo ' echo {a.. Z} ' echo {A.. Z} ' >/tmp/letterfile While Read-p ' please input a letter: ' Letter Todo ((' Awk-v var= "$letter" ' Begin{print length (var)} ' = = 1)) && grep-q

SED deletes script code for one line of content in a file _linux shell

Take a look at the contents of the original file: Copy Code code as follows: Root@localhost ~]# Cat File.txt Hello World A:b:c-h-N A:b:c-h-N SED deletes related rows based on conditions: Copy Code code as follows:

Example of positional variable parameters (special characters) in shell script _linux shell

$#: Number of parameters passed to script$*: Displays all parameters passed to the script in a single string. Unlike positional variables, this option argument can exceed 9$$: The current process ID number of the script run$! : The process ID number

Linux shell script Implementation detects tomcat_linux shell

Linux shell script detects tomcat and restarts automatically Background Run command sh xxx.sh &View background tasks: JobsSummoned to the front desk: FG Jobs number The code that can delete the while loop is put into the crontab, and the script

Shell version Nginx log spider crawl View script _linux Shell

Shell version Nginx log spider crawl View script Change the path of the Nginx log before usingIf more spiders themselves in the code Spider UA array Riga can #!/bin/bash m= "$ (date +%m)" Case $m in "") m= ' before ';; ") m= ' Feb ';; "

Shell Script Implementation Monitor iptables run State _linux shell

Recently in the debugging server iptables, oneself made a timed turn off iptables, but at night home rarely open a computer, so can not go to start iptables, of course, you may say, why not cancel timed shutdown iptables, I can only say that

Shell command Bulk modify picture filename _linux Shell

Company colleagues today to find me help modify the filename, I see, well, hundreds of files to rename, file name format is _01.png _02.png so in turn, colleagues asked the front of the "_" to remove, fortunately, the request is simple, did not let

Shell script implements whether the file is consistent across the line server _linux shell

Sometimes you need to compare files consistently in your work, and you can do it with the following script (simpler): share it, hoping to help friends with the same needs Copy Code code as follows: #!/bin/bash #对比服务器上文件是否一样 # Richard

Shell script to see the real footprint of process memory _linux Shell

Copy Code code as follows: #!/bin/bash #****************************************************************# # SCRIPTNAME:PM # AUTHOR:OSDBA # Create Date:2010-01-31 # Modify Author: # Modify Date:2010-01-31 # Function:show processes Memory

Linux shell Script learning recording and playback terminal session _linux Shell

Copy Code code as follows: amosli@amosli-pc:~/learn$ script-t 2> timing.log-a output.session# start recording Script started, file is Output.session amosli@amosli-pc:~/learn$ Hello1 No command ' hello1 ' found, did you mean: Command ' Hello

Linux build (load) dynamic library static libraries and load sample methods _linux Shell

Generation of dynamic libraries: 1,/*mysum.c*/ Copy Code code as follows: #include #include "src.h" int sum (int a,int b){return (A+B);} 2,/*mysum.h*/ Copy Code code as follows: #ifndef __src_h__ #

A method for removing intermediate nodes given the middle node pointer of a linked list _linux shell

The problem is as follows Input: Pointer to node C in list A->b->c->d->e Output: no return value, but new list becomes a->b->d->e Answer: Thought for a long time did not think out, read the hint to know the solution. Here's a little trick. To remove

Shell script Implementation installs Jdk_linux shell automatically in Linux system

A: This script runs the machine, LinuxB: The machine that installs the JDK, Linux First, on machine A on which the script runs, determine that you can log on to machine B on the JDK by SSH without a password, and then you can run this script on a:

Total Pages: 541 1 .... 522 523 524 525 526 .... 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.