A shell that sends mail via SMTP with username password

#!/bin/bash Smail () { smtp= "mail.mailadd.com 25" # Mail server address +25 port smtp_domain= "mailadd.com" # Send the domain name of the mail, from= "xxx@mailadd.com" after @ @ Send mail address rcptto=$1 #

Percona XTRABACKUPD Regular, incremental backup shell script

Backup strategy: Make a full standby every Sunday and make an incremental backup every day. One: Fully-prepared script Cat xtrabackup_full.sh #!/bin/bash Local_ip= "$ (/sbin/ifconfig eth0|grep ' inet addr ' |awk-f: ' {print $} ' |cut-d '-f1)" Email=

"Shell's locate and find performance command comparison"

1. Order Introduction ①locate The Linux Locate command is used to find documents that match the criteria, and he goes to the database where the document and directory names are stored, looking for documents or directories that conform to the

Linux Shell Script Programming--sed command detailed __HTML5

Brief Introduction Sed is an online editor that handles a single line of content at a time. When processing, the currently processed rows are stored in a temporary buffer, known as pattern spaces, followed by the SED command to handle the contents

Special symbols commonly used in the shell

The special symbols commonly used in the shell are listed below:   #;  ;;.,/\ \ ' String ' |!   $   ${}   $? $$   $*  \ string\ * **  ?: ^ $#   $@ ' command ' {}   [] [[]] () &nbs p;  (())   | |    && {xx,yy,zz,...} ~   ~+   ~-   &   \\   +-%= 

Linux shell time operation and calculation method __linux

 In recent time, when dealing with shell scripts, encountered time processing problems. The addition and subtraction of time, as well as the calculation of timing. 1. Time plus minus The way to do this is to turn the base time into a timestamp,

The absolute path to get the current work path and command file in the shell

[]linux Shell gets the absolute path of the currently executing script A common misconception is to use the PWD command, which is "Print name of current/working directory," which is what this command really means, the current working directory,

Shell Learning Notes----if conditions, judging conditions

Java EE Development of various types of resources download list, the history of the most complete IT resources, personal collection summary. Objective: No matter what programming language is inseparable from conditional judgment. The shell is no

Symbolic descriptions of shell scripts in Linux __linux

#。 The first sentence in the footsteps, indicating the program used to execute the script Example: #!/bin/bash # comments, for help information or for ignoring statements that are temporarily not executed # This is a comment $ variable

Linux Tools _fish Shell Primer __linux

It's nice to install fish shell today and install oh-my fish.But it is still a preliminary attempt and more features are not known. Install Fish sudo apt install fishSet as Default shell Chsh-s/usr/bin/fish If you want to switch back to bash,

awk and Shell pass value to each other

Using variables from the shell in awk One: "' $var '" In this way, you don't have to change the habit of using the AWK program, which is commonly used by foreigners. Such as: var= "Test" awk ' begin{print ' $var ' "} ' This notation is actually a

The meaning of $, $, $!, etc. in shell scripts.

Recently learning a Linux script, here is the meaning of $, $, $!, etc. in shell scripts Variable Description $$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return

Rsync error capture shell capture return code

Because of the job needs, because to determine whether rsync is successful, at first I was to judge the local file there is no to that do quiteSafety, now to push the data past, I can not judge, only with the rsyncreturnIn the first place, the '

Multi-conditional Process Control for Shell if

h=$ (date +%h) s=$ (date +%s) m=$ (date +%m) if [$h = = && $m = = && $s = = 10]] A. bash [] single and double brackets Basic elements:O [] Two symbols should be separated by a space aroundO There is a space between the internal operator and the

Shell script gets the MAC address of the intranet host in bulk

This shell script is used to obtain the MAC address of the intranet host of the 192.168.4.0/24 network segment in bulk#!/bin/bash#Author:Jink#这脚本使用ping和arp命令获取内网主机的MAC地址,查询到的MAC地址写入到文件中myping(){ ping -c2 -w1 -i0.5 $1 &>/dev/null if [ $? -eq 0 ]

Linux-shell Programming Basics

1th Shell Basics 1.1 What is a shellThe shell is a command interpreter, which at the outermost of the operating system, is responsible for directly talking to the user, explaining the user's input to the operating system, and processing the output

Shell Programming Advanced

Shell script programming includes process control, functions, arrays, advanced string manipulation, and advanced variables, where the main introduction to Process control.Process Control is mainly a process programming language, which is divided

Linux--shell Script Basics (variable types, variable operations, definitions, operations and logical relationships)

Shell Script Basics1.变量什么是变量#a=1# echo $a1变量:可以变化的量 1.2 Variable name considerations变量名不能以数字开头不能与系统中已有的环境变量重名,尽量不要全部使用大写,尽量不要使用“_”下划线开头最好做到见名知意不能使用程序中的保留字,列如if,for等 1.3 Variable types Character type Numeric typeIntegral

Shell programming-annotations, strings and Arrays (iv)

Shell annotationsUse # as the comment symbolThere are no multiple lines of comments in the shell, only one line plus a # numberString manipulation1. Stitching strings    2. Get the string lengthString= "KHJF"echo ${#string}3. Extracting

Use the exec function group to call and execute shell scripts

In Linux, the exec function is not a single function, but a function group, which is: int execl(const char *path, const char *arg, ...);int execlp(const char *file, const char *arg, ...);int execle(const char *path, const char *arg, ..., char *

Total Pages: 541 1 .... 192 193 194 195 196 .... 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.