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
Transferred from: http://www.linuxidc.com/Linux/2011-05/35723.htmHere's how:(1) Enter the command:Nohup your shell Command &(2) Enter the terminal back to the shell command line;(3) Enter the Exit command to exit the terminal:Exit(4) You can now
In Linux, how does one read and write XML using shell scripts? An existing config. xml
XML version = "1.0" encoding = "UTF-8"
?>
Config
>
Server-IP
> 192.168.1.45
Server-IP
>
Server-Port
> 1209
Server-Port
>
1. Shell variables are divided into local variables and environment variables.
1. Local variable -- Used in the script currently running by the user1) define the local variable format: Variable-name = ValueExample: [root @ jike1/root] # localtest =
Some Understandings of the differences between run and exec Methods:
The Declaration of the two methods is as follows:Function exec (byval command as string) as wshexec
Function run (byval command as string, [byval windowstyle], [byval
Note: Some variables related to parameters passed to shell:$ # Number of command line parameters$? Return Value of the Call Command$ Process ID of the current process$! Process Number of the last background command$0 the first parameter of the
I. Introduction to HDFS shell commands
We all know that HDFS is a distributed file system for data access. HDFS operations are basic operations of the file system, such as file creation, modification, deletion, and modification permissions, folder
I originally wanted to write some shell scripts to train the trainer. I just wanted to give it a guess. so there will be a follow-up event. the most primitive guess script was first written. both functionality and aesthetics are unsatisfactory.
1. sshpass enables SSH to remember the password for SSH Automatic Login (1) install sshpasssudo apt-Get install sshpass.pdf download sshpass-1.05.tar.gz shell> tar xvf sshpass-1.05.tar.gzshell> Cd sshpass-1.05shell> make & make install (2) test
Until loop syntax format:
Until conditiondo statementdone Note: The condition when until enters the loop is: when the condition is not true, the loop is executed. The condition for until to enter the loop is exactly the opposite of while. The
1. shell scripts and function scripts are files that contain shell commands. They are a shell program and run in three ways: one is to type source scriptname to read and run the script commands, just like typing them. Second, run bash scriptname and
Exercise: write a script (using the function). 1. prompt the user to enter the device file of a disk device. If the device file does not exist, prompt the user to enter the file again until the user inputs the file correctly; after the user gives
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Like awk, sed is an important text filtering tool.
Calling SED is the same as calling awk. There are three methods:
1. Type A command
This post may be a bit long, but it is definitely worth reading.
What is shell? It is neither a worksheet function nor an API function, nor Shell Oil. It is a built-in function of VBA.However, it is a vast array of functions that can accommodate n
1. 12 steps of bash command processing;
1. Divide command lines into tokens separated by fixed metacharacters;
SPACE, TAB, NEWLINE, ; , (, ),, |,&
The types of tokens include words, keywords, I/O redirections, and semicolons.2. Check the first mark
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still
Getting started with Shell programming (version 2) (I) and getting started with shell programmingSimple example Shell program
Example 1.
#!/bin/bash#This is to show what a shell script looks likeecho "Our first example"echo # This inserts an empty
By: dahubaobaoI. PrefaceWith the development of the Internet, more and more Unix/Linux systems are used, and it is no longer difficult to intrude into a Unix/Linux system. Usually, after the intrusion is successful, one or several backdoors will be
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