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
os:rhel6.4oracle:10.2.0.1Because the oracle10g comes out for a long time, many 10g packages have been updated to the new version, so there are a lot of strange problems during the installation process.For example, 64 requires a lot of 32-bit
4. Input and output#! /bin/bash# Read users input and then get his nameread"Please input your first name: " firstNameread"Please input your last name: " lastNameecho-e"Your full name is: $firstName $lastName"Read how to use:read[-ers][-a 数组][-d
View shell scripts for Linux server network trafficWhen uploading a large number of files, you can use this script to implement monitoring!#!/bin/sh ## #统计5s内的平均流量, if [ "$" = " ];then echo -" in megabytes e
Tag: Shell variable command executes the variable as a commandThe shell will execute the variable when the command executes "multiple commands simultaneously execute the problem"Today, a shell script is written that requires variables to be run as
First, view the file encoding. When you open the file, enter: Set fileencodingYou can display the file encoding format. Second, the file encoding conversion1, in vim Direct conversion file encoding, such as converting a file to Utf-8 formatin the
#!/bin/sh# Describe:check the real server status# history:2015-08-25 22:21:38# Author:timPath=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binExport PATHvip=192.168.1.121dip=192.168.1.112rip= ("192.168.1.122" "192.168.1.123")Vport=8
Today in one of their own technical group was asked such a question, and then a popular explanation, make a record, we look at the explanation is clear!The shell can often be seen: >/dev/null 2>&1The result of the command can be defined in the form
function allows us to divide a complex function into several modules, which makes the program structure clearer and the code reuse more efficient. Like other programming languages, the Shell supports functions as well. The Shell function must be
With Crontab you can execute a shell script or a series of Linux commands at a specified time. For example, the system administrator schedules a backup task to run every dayEntry# crontab–eThis allows you to open your personal crontab profile in
Variable Description:$$ the shell itself PID (ProcessID)$! PID of the Shell's last running background process$? End code of the last Run command (return value)$-flag at a glance using the SET command$* all parameter lists. All arguments are
Transferred from: http://hi.baidu.com/%CE%D2%D2%AA_%D1%A7_%CF%B0/blog/item/b3b5e723bb2ed1265243c1e4.htmlHow to read a file:First step: Pass the contents of the file to the while by pipe (|) or redirect (The second step is to call read in the while
When you design script, you sometimes need to modify your scripts, such as deleting or replacing certain keywords. Like this practice of dynamically modifying files during script execution, called stream editing. A tool with flow editing
In some cases, we might need to generate a temporary file in the script and then put the file in the directory as the final file. (You can refer to the Ntop.spec file) There are several benefits, one of which is that temporary files are not unique,
$ -----The name of the current program is actually an internal parameter, unlike $1,$2 .... because it must have! $#----The total number of arguments passed to the program, that is, the legend of the array size$?----the previous code or shell
Author : Fly2015I love to crack the first lesson of the Forum training elective exercises of the topic 7 . This shell has not been heard, but it is relatively simple to take off, according to the law of ESP can be direct to the light,Dump out the
Shell programming notes, shell programming1. Bash variableUser-Defined variables # local variablesEnvironment Variable # global variableLocation Parameter VariablePredefined VariablesX = val # value assignment$ X # CallThe default value of the
Summary of manual MoleBox shell Removal
Author: Fly2015
This program is a shell program that I love to crack the shell practice 8th. The shell of this program is the MoleBox V2.6.5 shell. These are advertisements and can be ignored directly. The
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