Turn: Several cases of sqlplus and shell passing value to each other

Several cases of sqlplus and shell passing value to each otherScenario One: The simplest invocation of sqlplus in the shell$cat test.sh#!/bin/shSqlplus Oracle/[email Protected]>file.log SELECT * from Test;ExitEOF #注意EOF要顶格写$sh test.sh$cat

Using Sqlmap to get the server shell

1. IntroductionSqlmap is an automated SQL injection tool whose main function is to scan, discover, and exploit the SQL injection vulnerability of a given URL, currently supported by MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access,

Shell until loop

The Until loop executes a series of commands until the condition is true. The Until loop and the while loop are just the opposite of the processing mode. The general while loop is better than the until loop, but at some point it is only rare that

Shell Scripting App (iii)

Security code: Waves will sometimes, straight hanging cloud sail sea Shell scripting App (iii)Foreword: It is difficult to write all the code in sequential order when it is hard to satisfy the requirements when facing various lists and repeating

Summary of Shell,awk,sed interception string method in Linux

ShellThe first type:${parameter%word} minimal truncation of word from behind${parameter%%word} to maximize the truncation of word from the back${parameter#word} minimal truncation of word from the front${parameter# #word} to maximize the truncation

Shell recursive function---loop copy file to the specified directory

Function: TitleCode:#!/bin/shrecursive ( ) {     for file in $1      do       subfile= ' ls $2$3/$file '         for subsubfile in  $subfile        do #                echo  $subsubfile          if [  "$subsubfile"  ==  "$2$3/$file"  ]         then  

The server hangs down into a basic shell system to make the data all CP easy to recover

Enter rescue mode: 1 Enter BIOS Select USB drive to start and save exitSelect rescue ModeDescription system mounted to/mnt/sysimage on continue continueSelect ShellSwitch root to the root file system and see if there is a U disk vfst is the U disk

Shell acquisition Time related commands

Linux Shell gets time and time interval (MS level)Note: While performing some performance testing, sometimes we want to calculate the time a program runs, and sometimes it is possible to write a shell script to facilitate some performance test

Shell anti-DDoS attack principle

#!/bin/sh#date:2015-12-13#filename:fang-dos.sh  #version: v1.0while truedo     #awk ' {print $} ' Access_2015-12-15.log|grep-v "^$" |sort|uniq-c >/tmp/tmp.log    netstat-an|grep est|awk-f ' [:]+ ' { Print $6} ' |sort|uniq-c >/tmp/tmp.log     exec

Shell-7.shell Use of strings

Shell-7.shell Use of strings1. View the length of the string${#var} to calculate the length of the variable value:[Email protected] ~]# var= ' Yuanji '[Email protected] ~]# echo ${#var}62. Further discussion of single quotation marks, double

Use of shell scripts---the use of special variables and scripts

Comprehensive use of special variables and scriptsfirst, environment variables :ENV # #查看所有的环境变量Echo-e "1\n2" # #换行显示Echo-e "1\t2" # #在1和2之间加入tab显示Echo-e "\033[44;37;5m me\033[0m COOL" # #有颜色显示, "\033[" is the terminal escape character startEcho-e "$

Shell scripts Use---if variables to write lamp management scripts

Note that the actual operation should be based on the actual situation of the script to adjust the corresponding1, installation httpdVI apache_install.sh#!/bin/bashRPM-E httpd httpd-manual--nodepsls/root/httpd*If [$?-eq 0];then # #判断是否已经下载了httpdTar

Bash Shell Scripting Learning (ii)

Write a second shell script today and write the after-class questions in "private cuisine". The problem needs to write a check whether a name exists, does not exist to create a file, there is a need to determine whether the name of the file, the

Shell Script Ping-w Usage

Today wrote a circular ping script to scan the network segment some of the IP address, the code is as follows:#!/bin/bashPing_info () {Ping-c 2-w 1 $;if (($?! =0));Then echo $ >>/tmp/iplist;Fi}For i in ' seq 129 254 ';d Oip_dx=192.168.1. $iip_lt=192.

Recommend a chrome SSH plugin-Secure Shell

http://blog.csdn.net/jizhongchun/article/details/8519413Guide: I am a chrome Fans. Recently found a Google official out of the SSH plugin- Secure Shell ( The current version is 0.8.8). Over here.With:1 downloads.Download the extension to Google

About shell scripting when value too great for base (Error token is "08")

A problem was encountered today when writing a timed CP script, value too great for base (Error token is "08")The number system that originally started with 0 is recognized by default as an octal number, so my $datem-1 gets the month of the month in

Shell Script sed command

from:http://blog.csdn.net/engledb/article/details/19623087 Six, common examples1. P commandThe command p is used to display the contents of the pattern space. By default, sed prints the input lines on the screen, and option-n is used to cancel the

Linux Shell three automatic modification to static IP

This script is mainly used to modify the IP address to static!#!/bin/bash# #Target:  auto chmod ip information! #Date:  2015-05-10#author: jacken# Qq:654001593#qq group:170544180#version: 1.0#only allow define variableshopt -s

Linux Shell QuickStart Small example (Shell 13 ask learning note)

Read the CU forum Shell 13 After a few small experiments, prepare to forget!Shell 13 Q Address: http://bbs.chinaunix.net/thread-218853-1-1.html#!/bin/bashfunction func_com () {Local a=1 local b= "2c3" Echo ${a}b echo $ab}function Func_arra Y ()

Special characters of shell scripts and special characters of shell scripts

Special characters of shell scripts and special characters of shell scripts1. # comment ,#! Besides, echo $ {PATH # *:} parameter replacement does not represent annotation, numeric conversion, and echo $(2 #101011) 2 .; command Line separator.

Total Pages: 541 1 .... 87 88 89 90 91 .... 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.