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

Meaning of variables $$, $ A, etc. in shell scripts

The execution name of this program$n the nth parameter value of this program, n=1..9$* all parameters of this program, this option can have more than 9 parameters.$# the number of parameters for this program$$ the PID of this program (the current

Shell statement error or abnormal auto Exit Do not continue execution

Today's operation encountered a problem, need to redirect the content to the file, and then rename the use of the file, the result of the redirection has been thrown out of the exception, the following nature will be followed by a variety of

Shell script: Create function and specify directory to download

Write a script:1, create a function, can accept two parameters:1) The first parameter is a URL, you can download the file, the second parameter is a directory, that is, the location of the download after the save;2) If the user-given directory does

"Linux uses" shell command line common shortcut keys

Move:Ctrl + A: Moves to the beginning of the currently edited command,Ctrl + B: Moves to the end of the currently edited command line,Ctrl + F or->: move by word aligns (toward the end of the command line, forward)Ctrl + B or Alt + F: Move right by

Linux-bash shell function; built-in command type

Command editing ability (history):One of the great features of Bash is that "he can remember the commands he used!" "This is a really great feature!" Because I just press "up and down" in the command column to find the front/rear input command! In

Linux Shell Scripting Raiders Review

1. After opening the terminal prompt, $ represents a normal user, #表示管理员用户root, root is the most privileged user in the Linux system.2. A shell script is usually a text file with a #! start, where #! precedes the interpreter path. Example:

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

Shell Learning 17-shell for loop

Similar to other programming languages, the shell supports A for loop.The general format for A for loop is:For variable in list Docommand1command2...commandndoneA list is a sequence of values (numbers, strings, and so on), each separated by a space.

awk usage in the shell

Brief introductionAwk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports. To put it simply, awk reads the file line-by-row, using

Shell learns 52 days----Delete process kill command

Control and deletion of processesUseKillcommand to terminate a process.usually,terminating a foreground process can be usedCtrl + CKey,However, for a background process, you must use theKillcommand to terminate,we need to first

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

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

Error in host address encountered while running Spark-shell

Spark 1.4 was downloaded and the following error was encountered while running Spark-shell: Java.net.unknownhostexception:ukon-m-q0ep:ukon-m-q0ep:nodename nor servname provided, or not knownAt Java.net.InetAddress.getLocalHost

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

"Uefi virtual machines" and "EFI SHELL" Introduction

computers with UEFI bios are not available to all netizens, and VMware (8.0 or more) is now being created to enable everyone to experience "UEFI" the "Uefi virtual Machine", which was provided last year, is now re-provided for the completeness of

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

Synchronizing files remotely by using SCP or rsync in a shell script

The simple use of the remote SCP file shell expect is implemented in shell scripts with expect http://myunix.blog.51cto.com/191254/1095074http:// Jie-hui-520.blog.163.com/blog/static/60074301201022610217249/linux rsync Synchronous Practice Http://my.

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

Install bash shell and solarisbashshell on solaris

Install bash shell and solarisbashshell on solarisA bash vulnerability exists in earlier versions of sun solaris, which can be solved by uninstalling or upgrading.1. All pkg installation packages:Http://mirror.opencsw.org/opencsw/allpkgs/ 2,

Total Pages: 541 1 .... 173 174 175 176 177 .... 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.