Database backup, remote execution shell script

Little stuff, for database backup.Retained.#!/bin/SHkeepdays= -currenttime=`Date "+%y-%m-%d-%h-%m"' Backpath="/sql_bak/"DbName="Smdb"Echo${currenttime}/usr/bin/mysqldump--default-character-set utf8-u xxx--password=xxx--database ${dbname} >${backpath}

IP network address and broadcast address calculation for shell scripts

This is an old-fashioned exercise, shell script to practice a lot, want to practice shift calculation, there is the following script.#!/bin/bashippattern= "(\\.) {3}\ "maskpattern=" [1-9]| [12] [0-9]|3[01] "while :d o  echo -e -n "

JMeter Bean Shell Use (ii)

Previous JMeter Bean shell Use (a) a brief introduction of the bean shell in the next jmeter, this article is a supplement to the above, mainly summarizes the common scenarios and methods, I believe these basic can cover most of the needs. This

shell--Learning SED

SED: Data Flow EditorReads a row into the memory processing row and then outputs a row.Mode space:SED: Do not edit source files by defaultsed [option] Addresscommand file1, start line, end linesed startline,endline file sed 2,5p file2. Pattern

Comprehensive sentence shell hack

Before I made a sentence in the Forum Hack tool.Therefore, the decision is based on the change, in line with the use of some people.The previous version only supports https/aspx, this time after the improvement, it is also the last

Writing your shell is actually very simple.

Quote: I have not written a shell script before, perhaps because of laziness, perhaps not forced to write to the point of the shell. However, some time ago, the job requirements, required to rerun a few months of the script, these scripts are timed

Shell Script Simulation Milter implementation of black and white list and keyword filtering

Program execution Flow:1. Start accepting mail.2. Check if the sender is in the blacklist, and if it refuses to accept it, continue3. Check whether the sender is in the whitelist, and if it is receiving mail, continue4. Keyword filtering of the

[Note] Login Shell vs. non-logon shell

Log-in Shell:Login via terminalSu-usernameNon-logon Shell:Su USERNAME (switch user with Su, without parameters)Open Command Window under GUIShell scripts executed automatically (using at, crontab, Anacron, etc.)Bash configuration file:Global

Shell Learning Notes

The shell is born in Unix and is a tool for unix/linux interaction, and it doesn't make sense to learn the shell alone.The shell needs to rely on other programs to do most of the work, which may be his flaw, but its undoubted strength is that the

Intra-enterprise network segment detects how many hosts live--shell scripts

Intra-enterprise network segment detects how many hosts are alive1) byPingLifeorder to achievePing-c 1-w 1 IP- C: indicates the numberof times , 1 is 1- W: represents deadline, time out , in seconds,1 for 1 seconds. Note: a) If one goes to ping to

Shell redirection Debugging information

Shell redirection Debugging informationFulinux*************************************************************************************************************** ***********************Author: fulinuxReprint statement:

Conditional judgment of Linux shell scripts

The first thing to think about is if else conditional judgment statement, the following gives a comprehensive statement: ifcondition Thencondition istrueExecute all commandselifStatementelifCondition1 ThenCondition1 istrueExecute all

Linux Shell Common Tips (directory)

Linux Shell Common Skills (i)Http://www.cnblogs.com/stephen-liu74/archive/2011/11/10/2240461.htmlI. Special documents:/dev/null and/dev/ttyTwo. Simple command trackingThree. Regular expression basic Syntax descriptionFour. Use the Cut command to

shell< two >

1. you want to download a software from the server, your machine has two network cards eth0 and eth1, the address is configured as follows:Eth0 : 192.168.6.25/24Eth1 : 172.16.101.25/24 default gateway: 192.168.6.1/24 server address:211.138.18.3

Shell script: Nginx Reverse proxy node status check

LVS can use IPVSAM-LN to view the situation of the RS node, when the RS after the shutdown, when the RS automatically added after the restoration, Nginx can not view, need to install plug-ins or write their own script implementation;The reverse

Lao Li share: "Linux shell Script Raiders" Essentials (iii)

1, the production of any size file [[email protected] dd_test]#[[email protected] dd_test]# dd If=/dev/zero of=junk.data bs=1k count=1010+0 Records in10+0 Records out10240 bytes (Ten kB) copied, 0.00137023 S, 7.5 mb/s 2, File system related test [-f

Shell menu (Springboard Management and connection scripts)

#!/bin/bashWap_server= "10.0.0.1"Mem_server= "10.0.0.2"Erp01_server= "10.0.0.3"Erp02_server= "10.0.0.4"Erpold_server= "10.0.0.5"Backup_server= "10.0.0.6"Monitor_server= "10.0.0.7"Dossh=/home/lichuang/scrips/dossh.sh

Shell script Programming-structured commands 1

1, Branch statement (1) IF-THEN-FI statement: Format: if Then commands fi When the command command exit status code is $?=0, enter the branch, or continue with the following command.(2) IF-THEN-ELSE-FI statement: Format: if

Array of shell script programming

An array is a set of elements of the same data type arranged in a certain order, that is, a variable of the same type is named with a name, and then the set of the variable is distinguished by a number, which is called the array name, and the number

Shell array Definitions and operations

This is the night of my own leisure. Learning Solr suddenly saw the definition of the array, want to forward a more detailed array operation.1. Array definitionsA= (1 2 3 4 5)Echo $aA pair of parentheses indicates an array, and the elements of the

Total Pages: 541 1 .... 330 331 332 333 334 .... 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.