Java execution shell script shuts down remote database

This example is to start or close the remote MySQL database with Java shell script, demand reason: After the game server, in order to save memory consumption, need to shut down the server unnecessary database (a server host has multiple MySQL

Linux Server Batch Deployment Application shell script (Tomcat/jetty)

Linux Server Batch Deployment application shell script:1. Please replace the server address (Tomcat or jetty server) within the codeserverroot=/home/undoner/java_tool/apache-tomcat-7.0.61Serverdir=/home/undoner/java_tool/apache-tomcat-7.0.61/webapps2

Common operations Summary for HBase Shell

 1, creating table: Create ' t1 ', ' F1 ', ' F2 ', ' F3 '                   #-------T1 is the table name, F1,F2 , F3 is the column family name  2, view all tables: list 3, view the structure of the table: describe ' t1 '  4, add a column family:

Shell learns 58 days----/proc File system

/proc File Systemthe /proc file system in Linux consists of a set of directories and files , mounted ( Mount) with the /proc directory .The/proc file system is a virtual file system that provides an interface to the kernel data structure in the

The last of Linux shell induction

How to use:Format 1:last-nN Specify the number of accounts, the latest first n login information (user, terminal, IP, date, time and duration)Format 2:last-n Purpose: In daily work, if you want to troubleshoot the most recent years who are or have

Linux shell reads rows of files line by line

Read a file line For Command substitution Code block redirection While Pipe character Code block redirection ForIFS=$‘\n‘forin-l`do (( count++ ))doneecho$countNote:For read,

Shell Bulk Replace content in text

Bulk Replace directory/proc in script file, for/ETC/INIT.D[Email protected] course_04]# more test.sh #!/bin/bashdir=/procaa= ' ls $DIR ' echo $aa650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/AD/wKiom1WktFCyF39TAAD5F48gmko076.jpg

MATLAB using new Discovery 1 (tips: Shell commands, engineering working directory settings related)

recently debugging a MATLAB-based program, in the occasional found a few more interesting tricks, to share with you ( probably is too rookie, did not involve this aspect, the generous house does not have the laughed at, has the help to you to please

Linux Shell Command Series (3)

bz2

One. Chown commandThe "chown" command changes the owner of the file and the user group. Each file belongs to one user group and one user. In your directory, use "Ls-l" and you will see something like this.[Email protected]:~# ls-lDrwxr-xr-x 3 server

The magical application of ${} in the shell

1. Truncation function file=dir1/dir2/dir3/my. file.txt ${file #*/}: Remove the first/its left string: dir2/dir3/my. file .txt${ file ##*/}: Take out the last/and left string: my.file .txt${ file #*.}: Take out the first. and its left string:

Linux Shell scripts limit ssh Maximum user logins

My original intention in this article was to remove the "copy SSH Channel" and "Copy ssh Session" functions from the remote SSH client. So I thought I could set it up on the SSH server, but looked at the Sshd_config man Manual, It is found that the

If condition integrated shell one button installation lamp

Write operations scripts through if statements and variables,A key to install the lamp environment of the script;A key source installation lamp script, the first decomposition of the various functions of the script;Print Menu:1) Install Apache Web

Shell type, version and selection

Shell type, version and selectionAnyone who uses *inx, whether as a loginThe shell is also programmed to touch the shell.After years ofDevelopment, a wide variety of shells. In addition to our familiar sh, ksh, CSH, bash ... , there are various free

The expression of the Linux shell

Strictly speaking, there is no concept of an expression in the shell. The shell itself is really just a collection of commands, and of course it is not a random heap, but a certain organization. But this organization is not so rigorous, so this

Write your own shell command pwd

Thinking: (1) get "." The I node number, called N (using stat)(2) ChDir. (using ChDir)(3) Find the node with inode number n and get its file name.Repeat the above operation until the current folder "." The inode value equals "..." The Inode

Shell Programming---sed command

SED is a non-interactive text editor that can edit text files and standard inputSed simply edits a copy of the original file in the buffer and does not edit the original fileThree ways in which SED commands are invoked1. Call sed on shell command

Shell script Variable definition

http://blog.csdn.net/qyf_5445/article/details/8886071Custom variablesNo type distinction in bash variablesAa=abc123 define variables and assign values abc123Aa= defines an empty variable or empties the variable AA, but the variable still

Shell Script (vii)

Shell Script (vii)J, Array#关联数组: A generic array index must be a numeric value, and an associative array index can be a string#也可以是数值, similar to a Python dictionaryawk ' BEGIN {str[name]= ' string '; str[1]= "1"};p rintf ("%s\n%s\n", str[name],str[1

Shell Script sed command

from:http://blog.csdn.net/engledb/article/details/19623087 Six, common examples1. P commandThe command p is used to display the contents of the pattern space. By default, sed prints the input lines on the screen, and option-n is used to cancel the

Shell's case statement

The Shell Case statement is a multi-select statement. A case statement can be used to match a value with a pattern, and if the match succeeds, the matching command is executed. The case statement is in the following format:The code is as

Total Pages: 541 1 .... 193 194 195 196 197 .... 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.