Script content:
The code is as follows
Copy Code
#!/bin/bash# Author:mos# Script Name:mos_ca.sh# Date & time:2013-01-06/23:05:35# version:1.0.2# Description:#[-f/etc/sysconfig/mos_ca.conf] &&.
The SSH connection to a remote host will ask for a password, like the default behavior of the SU, sudo command, is not read from stdin, the legend is for security considerations, but sometimes in the script does require an unattended landing.
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
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
What happens when the program executesWhen you double-click the Terminal program icon on the desktop, a program loaded into the shell opens. The commands you type do not execute directly in the kernel, but interact with the shell first.Command (eg. '
Command-line argumentsThe most basic way to pass data to a shell script is to use command-line arguments, which allow you to add data values to the command line when you run the scriptReading parametersBash Shell assigns some special variables
Shell Script Series Tutorial Two: Start Shell programming2.1 How do I write a shell script?(1) The most common use of VI or mcedit to write shell scripts, but you can also use any of your favorite editor;(2) After the script is written, to set
Copyright notice: This article by Hangyuan Li original article, reprint please indicate source:Article original link: https://www.qcloud.com/community/article/109Source: Tengyun https://www.qcloud.com/communityThe purpose of this article is to share
There are four kinds of arithmetic operations in Linux, namely expr,let,$[],$ (()).Here are the four ways to use the arithmetic operations, respectivelyFirst, the use of expr[[email protected] ~]# Expr 1 + 23[[email protected] ~]# expr 1-2-1[[email
from the programmer's point of view, the shell itself is a program written in C language,From the user's point of view, the shell is a bridge between the user and the Linux operating system. The user can either enter command execution or use shell
Continue and break are commonly used in the while, until, select Loop statements, exit this round or all loops under specified conditions, we need to use the example to verify the results of the operation, it is good to understand. But it's really
I. about the shellShell, English is shell, the meaning of the shell, as in the computer, there is also a layer of meaning, that is, the shell can be seen as a computer system encapsulation of the shell for the user to use, so the user can manipulate
Note: Depending on the number of web logs or network connections, monitor the number of concurrent connections for an IP or PV to 100 in a short timethat is, call the firewall command to seal off the corresponding IP, monitoring frequency every 3
Conditional judgment: If statementSyntax format:IfistruefiNote: There must be a space between expression and square brackets ([]), or there will be a syntax error.The IF statement determines which branch to execute by using relational operators to
User InformationThe first thing you should do when you install Git is to set up your user name and email address. This is important because each Git commit will use this information and it will be written to each of your commits and cannot be
The old boy Yun-dimensional class 25-26 period, nearly 350 students, about to accept the Shell Advanced Programming Course baptism, first give everyone to a scare topic it!Tips:Prohibit any search, self-suppressed is the hero!Search for a meeting,
Learn Linux, starting with the commandThe graphical interface just makes simple things simpler graphical interface can quickly handle simple things, such as opening/closing a file Then, as transaction complexity increases, the graphical interface
The basics of the Korn shell commonly used on IBM AIX operating systems are described in more detail in the guide.Korn the order in which the shell executes commands1. Keywords, such as if,for,function, etc.2. Aliases (Aliases)3. Internal commands,
First, shell overview1.Shell Overview:Shell: Shell, a shell is a command-line interpreter that provides users with an interface-level program that sends requests to the Linux kernel to run programs, and users can start, suspend, stop, or even write
7.1 View a list of the shell programs available in the current Linux system[Email protected] ~]# Cat/etc/shells/bin/sh/bin/bash/sbin/nologin/bin/tcsh/bin/csh/bin/ksh7.2 Confirm some of the linked files that exist in the shell program[Email protected]
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.