Environment variables for sql*plus in shell scripts

-silent     is used to eliminate the default display of Sql*plus and database version information   when the login Sql*plus is connected to the database, and also removes the display prompt.             can be shortened to-sset pagesize 0  

Shell script programming Shell files contain

1. Like other languages, the shell can also contain external scripts, which makes it easy to encapsulate some common code as a standalone fileExample: The testshellfileinclude.sh script is as follows:the #!/bin/Bash#shell file contains the following

HBase starts the HBase Shell Run command to the class path contains multiple SLF4J bindings. Error

1:hbase start hbase Shell Run command class path contains multiple slf4j Bindings. Error, because the jar package conflicts, so for the jar package with Hadoop, you can delete the other jar package, if you are not sure whether the deletion is

Shell script creates a virtual machine and configures the network card IP address (two scripts)

###################### #脚本1: Creating a virtual machine kvm##########################!/bin/bashQcow2_dir=/var/lib/libvirt/imagesRead-p "Please enter the virtual machine number:" Num #主机号If [$num-lt 9];thenNum=0$num # #主机号FiIf [-Z ' $num '];thenecho "

Shell Script Summary

Shell Script Summary ArraySeveral common uses of indexed arraysarray[0] array数组的第一个值array[*] array数组的所有值#array[*] array数组里数值的个数unset array[0] 删除array数组里的第一个值unset array 删除掉array整个数组Array slices: ${array[@]:num1:num2} num1:要跳过的元素个数

Shell version of Tetris II: Program flow

First, the expression of the blockBecause the shell can not define a two-dimensional array, so can only use one-dimensional array to represent the box, Tetris can be divided into 7 categories, each type of block is composed of four types of small

Shell Send mail function

#发送邮件函数function Send_mail () {#定义邮件发送列表maillist = ([email protected][email protected][email protected]) if ["$" = = "Gateway"]; Then to mail in ${maillist[*]};d o echo "Cannot ping gateway, check network" |                Mail-s "PI (10.78.1.122)

The arrangement of several random numbers of shell scripts (arithmetic basis)

Blog content is about the shell script number of the arrangement, more basic, mainly sharing logic, there are better ideas to share in the review of common progress.The script implementation prompts the user to enter 3 integers sequentially, and the

Shell Script 100 Example "one"

1. Write the Hello World script#!/bin/bashecho "Hello World"2. Create a Linux system account and password with location variables#!/bin/bash#$1 is the first parameter to execute a script, and the second argument to execute the scriptUseradd "$!"echo

Eighth Linux Shell Basics

8.1 Shell IntroductionThe Linux shell is simply a process of a command line and user interaction. You make an order and it will result. Similar to the CMD window inside windows.8.2 Shell Command HistoryAll the commands that have been knocked out

Shell exercises to count memory usage

Demand:Write a script that calculates the amount of memory that is consumed by all processes in the Linux system. (hint, use PS or TOP command)#!/bin/bashtime= ' date +%y-%m-%d-%h:%m:%s ' # #方法一s =0for m in  ' ps aux |awk  ' { print $6} '  |grep -v 

20.Shell Introduction, History,tab key, wildcard, redirect

Five Week third session (January 10) 8.1 Shell Introduction 8.2 Command History 8.3 Command Completion and aliases 8.4 Wildcard Characters 8.5 Input and output redirection Shell IntroductionThe shell is a command

Shell File Audit

#!/bin/bash#####################Data: 2017/7/19#####################set-X#监控文件目录Init_path= "/home/test/share"#生成日志目录File_dir= "/tyk"File_type= (Reguar directory character block link socket pipe symbolic)file_magic= (text/plain inode/chardevice inode/

Use of the shell

function Instead_include (){Sed-i "S/\-i. \/.. \/export\/voiceconvlayerheader/\-i. \/voiceconvlayer\/include/g "$}Instead_include Application/debug/makefileInstead_include Application/misc/makefileInstead_include Application/voice/makefileHG revert

Shell scripts for quick deployment of Tomcat projects

In order to do cluster testing, 3 tomcat is installed on each machine, each time the project is released, it is necessary to repeatedly knock some commands, check that the Tomcat process has not stopped before restarting Tomcat, and kill the process

Use Shell's Prompt_command to add log audit function to record any user's actions to log file in real time

Using Prompt_command to implement the command audit function:Record what users, at what time, what to do, and then record the information found in a file.Specific operation:Append the following to/etc/profile:############ #日志审计chmod +s/usr/bin/chmod

Shell script ping test (Code instance), shellping

Shell script ping test (Code instance), shellpingShell script ping Test Principle: use shell scripts to execute a ping command. 1) The destination_ip variable is the IP address of the target host. 2) The-c1 parameter after ping indicates the

Shell scripts automatically log on to the server and install JDK (Code tutorial), shelljdk

Shell scripts automatically log on to the server and install JDK (Code tutorial), shelljdk1. Write the installation script Install. sh ! /Bin/bashURL = "https: // ***/jdk-8u161-linux-x64.tar.gz "yum install-y wgetwget $ URLtar-zxvf jdk-8u161-linux-

Through the combination of jenkins and shell scripts, the war package is automatically deployed on multiple servers.

Through the combination of jenkins and shell scripts, the war package is automatically deployed on multiple servers. Combined with shell scripts, jenkins can automatically deploy war packages on multiple servers. Environment: 192.168.2.120 jenkins

Shell scripts implement scp upload (mutual CT interaction) and ftp upload, scpexpect

Shell scripts implement scp upload (mutual CT interaction) and ftp upload, scpexpect There are two requirements recently. One is to copy files from each server to a server with a large disk on a regular basis every day, and copy the files on each

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