Making shell scripts for spring boot executables

After the Spring boot project is packaged into an executable jar, for ease of management, we can make a script that manages the steps of starting, stopping, and so on. Instructions for use Assuming that the script is eventually named App.sh, you can

Solution to the "integer expression expected" of the shell command __shell

In the shell script, when comparing with parameters, such as "[$temp-eq" IPhone "]", there may be an "integer expression expected" error. This is because these parameters:-GT,-lt,-eq comparisons are both numbers and variables, so the variable temp

Summary of Shell-sort incremental sorting algorithm __acmer ' s

1.shell-sortHill sort (Shell sort) is a sort of insertion. is for the improvement of the direct insertion sort algorithm. The method is also called narrowing the incremental order, due to DL. The shell was named after it was introduced in 1959. We

Special variables in the shell $ $ $# $$ $! $? meaning __shell Script

$: The name of the executing script $* and $@: Return all parameters to $#: The number of arguments $_: represents the last parameter of the previous command $$: The PID $! that represents the command that was last executed: The PID $?: A flag that

Simple example of a shell script

1. Analog Linnux Login Shell #/bin/bashEcho-n "Login:"Read nameEcho-n "Password:"Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The host and password is right!"else echo "Input is error!"Fi 2. Compare the size of two

Shell 10 Process Control

If is judged if#shell#!/bin/sha=5if [[ $a > 3 ]];then echo "$a>3"fi#写成一行if [[ $a 3";fi5>35>3If Else#shell#!/bin/sha=5if [[ $a > 8 ]];then echo "$a>8"else echo "$a5If elif Else#shell#!/bin/sha=5if [[ $a > 5 ]];then echo "$a>5"elif [ $a

Shell Script Connection Create database

1. Connect to create a database #!/bin/bashmysql="mysql -uroot -p111111"#sql="show tables from mysql"sql="create table test.user( id int unsigned auto_increment primary key, username varchar(20), password varchar(30))"$mysql -e "

Shell Programming-test Command (VI)

The test command is commonly used to check whether certain conditions are true.Numerical test-EQ: Detects whether two numbers are equal, equal returns True-ne: Detects whether two numbers are equal, not equal returns True-GT: Detects if the left

Operation of the Shell two ways

Interactive ShellPackage Mainimport ("Golang.org/x/crypto/ssh" "Log" "OS" "FMT"Func Main () {CE:= Func (err error, MSGstring) { ifErr! =Nil {log. Fatalf ("%s Error:%v", MSG, err)} } client, err:= ssh. Dial ("TCP","192.168.154.131:22",

Shell (3) application

Shell Script (iii)A For Loop statement: (Unknown number of cycles)For Variable name Value listDoCommand sequenceDone(1) Bulk add users by Name listVim/root/user.txt?ZhangsanWangwuXiaobaivim/root/uadd.sh#!/bin/bashulist=$ (Cat/root/user.txt)For uname

"Shell Scripting Learning-2"

#!/bin/bash-#echo do what exetuate this project \nprintf "Please input your passwd" Stty-echoread Pass 1.txt | Sort > 2.txt#echo "1 6 8 1 4 9" > 1.txt | Sort 1.txt | Tail 1.txt #cat/dev/null#!/bin/bash#cat/bin/liupeng | grep a | WC #$1#read $x

Shell Script (iii)

One? Using the FOR Loop statement(1) Structure of the FOR statement: When using a For loop statement, you need to specify a list of possible values for a variable, repeating the same sequence of commands for each different value until the value of

Custom logging to a file in a shell script

Custom log functions and pre-variables# Adirname-return Absolute dirname of given fileadirname () {odir= ' pwd '; CD ' dirname $ '; pwd; CD "${odir}";} Mynam= ' basename ' $ "' mydir= ' Adirname" $ "' myhome= '/home/shell/script" mylog_path=

Shell Process Control statement case

The Linux shell has learned several times.But the memory is not good, always forget, chase the main reason may be not common reason!Case beginning Esac EndHere's the result.Input method does not enter the symbol is wrong, the beginning of the total

Crontab the reason that the shell script failed to execute at timed time

There is a period of time without crontab scheduled to perform tasks, this time to take advantage of the project implementation of the opportunity to further analyze the Crontab timing task settings encountered some difficult problems.Crontab-l View

Shell Delimited string array

Tag:[1]    Array    shel   done   bash    str   class   lov   nbsp    #!/bin/bash tmp= "Test,girl,boy,love " old_ifs = " $IFS " ifs = " , " arr = ($a) IFS = " $OLD _ifs " Echo" arr[0] is: ${arr[0]} " echo "arr len: ${#arr [

Show your shell a bit of color

Reprinted please indicate the source: http://blog.csdn.net/lastsweetop/article/details/8908808 Author: Fire tianlin To avoid setting for each user, directly modify the/etc/profile file. 1. in Linux Add the following three lines: Give your ls a bit

) Simplified shell learning materials

1. system environment variables after the user logs on to the system: $ Home user's own directory $ Path: the directory to be searched during Command Execution $ TZ Time Zone $ Mailcheck the number of seconds to check whether a new letter exists

Seeking for OEP from shell-two memory breakpoint Methods

0x00 Preface The first thing for shelling is to find the OEP (oringinal entry point). Because of shelling, when the PE file is loaded into OD or other debugging software, it is usually the entry address of the shell program. So the first step of

How to compile Linux Shell script (1)

I am studying Linux Shell script recently.Linux Shell scripting tutorial (LSST) v1.05r3But because it is in English, it is also a deep impression. Now, go to the topic. 1. How to Write shell script? A. First, use any Compiler (Vi, Vim, kwrite,...)

Total Pages: 541 1 .... 285 286 287 288 289 .... 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.