1, to determine whether the child process execution end
Sometimes after we invoke the shell in Java, the subsequent operation can only continue if the process subprocess ends normally, so we need to determine when the process processes are
Source: This article originates from: http://sinbad.zhoubin.com Author: Unknown (2002-12-12-06:02:00)
Simple and easy to find, and learn it as a socket programming example. /**/ /*======================================================================
Reprint: HTTP://WWW.JIANSHU.COM/P/A7D7DF97FE4B
Jenkins official website deployment Steps
Click on the button to download the current stable version of the war package, the test war package than other installation methods installed Jenkins easier to
How shell scripts are executed:NOTE: WD stands for "Script saved directory"
1.forkSyntax:/wd/shell.shFork is the most common, is directly in the script with/wd/shell.sh to call shell.sh this script. Run a child shell executes the calling script when
What is a shell?Shell is a use C Programming language, which is used by the user Linux the bridge. the Shell is both a command language and a programming language. Shell refers to an application that provides an interface through which users access
Iv. conclusion of the experiment1. Practice command history, aliases, and special character usages in the shell (4th. 4.2, Section ~4.5)2. Shell Command Application Exercise(1) The use of the following documents is briefly reviewed through the Help
20.5 logical judgments in shell scriptsLogical ExpressionsIn the [] bracket:-lt:=little than less than-le:=little && equal less than equals-eq:=equal equals-ne:=no Equal Not equal to-gt:=greater than greater than-ge:=greater && equal greater than or
Directory:I. While loop and until loopTwo. Loop control statement continue break shiftThree. Special usageI. While loop and until loop
1.while CycleWhile CONDITION; DoLoop bodyDoneCONDITION: cyclic control condition; Before entering the loop,
One, parenthesis, parentheses ()1, single parenthesis ()?? ① Command Group. The commands in parentheses will run in a new sub-shell sequence. So the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses
Bash Digital Computing--Digital processing power is critical for any programming language, but for bash shell scripts, this ability is poor, even if the form of Expr command and $[] can only be used for integer operations, the operation of
Five Week fifth session (January 12)
8.10 Shell Special Symbol Cut command
8.11 Sort_wc_uniq Command
8.12 tee_tr_split Command
8.13 Shell Special Symbol
Related Quiz title: http://ask.apelearn.com/question/5437
Extended
8.10 Shell Special Symbol Cut commandCommand: CutUsed to intercept a fieldSyntax: cut-d ' delimited character ' [-CF] n Here's n is the number-D: followed by delimited characters, separated by single quotation marks-C: followed by the first few
PHP itself does not have a timer function,PHP can not be multithreaded. PHP's scheduled task function must be combined with other tools to achieve Linux the script implementationHow to use :crontab Filecrontab [-u user ] [-u user ] {-l |-r |-e}
The string is compared to the integer type, because the ABCD and other characters are not 0123 when the program tries to turn to binary, the conversion cannot be completed, so the operation used for the numeric comparison cannot be used for the
Transferred from: http://my.oschina.net/u/189445/blog/595232
HBase shell command
Describe
Alter
Modify Column family (family) mode
Count
Number of rows in the statistics table
Array: A contiguous memory space that holds multiple elements.Declaring an array: bash-4 support In addition to the default 0,1,2 ... You can also customize the index format, which is called an associative arrayDeclaring an indexed array: declare-a
Shell scripts used to monitor the free space of disks in Linux are required by system administrators or DBAs. The following is a sample shell script for monitoring disk space for your reference.
1. Monitor the free space shell script of the
Basic shell programming
1. Start Script Programming
#! The/bin/sh line is the shebang line, which tells the system that the following command is executed by shell.
#!/bin/shPERSON="Yuesichiu"echo $PERSONecho "what is your name?"read PERSONecho
Defining functions in shell can modularize the code and facilitate code reuse. However, the scope of the variables in the script itself and the variables in the function may be confusing to you. Here, let's take a look at this issue.
(1) The
Shell function return value, generally in three ways: return, argv, Echo
1) Return StatementThe Return Value of the shell function, which can be the same as that of other languages, returned through the return statement.Example:
#!/bin/bash
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