Shell script for running Java programs under Linux

Vim creates a new shell file, such as my file named Java_run, which reads: echo "Please enter the Java file path you want to compile:" Read Path #分离路径和文件名var1= ' dirname $path ' #路径Var2= ' basename $path ' #文件名CD $var 1Javac $var 2Java ${var2%.*}

How the Shell determines whether the file exists

method One: Locate_library () {[!] "$1*" = "' echo $1* '"]; } Usage: # Look for PAM (do weirdly due to distribution bugs (e.g. Debian) or the # Crypt library. If Find_func Pam_start SYSDEPUTIL.O; Then locate_library/lib/libpam.so.0 && echo

Introduction to the selection structure of the Linux shell script program __linux

A lot of people are learning C + + language First, then learn shell script. If you have a little programming base, it's easy to understand the so-called order, selection, and loop. Order structure In fact, there is nothing to say, before the contact

Shell Tutorial (i): Introduction _shell

The shell provides an interface to UNIX systems. Collects input and executes the program according to input. When a program finishes executing, it displays the output of the program. The shell is an environment where we can run our commands,

Hadoop Learning Notes (15)---the use of Hbase shell commands

1. Start HBase, go to the Bin folder under the HBase folder, and then execute the command: HBase Shell [Root@hadoop0 bin]# hbase shell hbase shell; Enter ' help ' for list of supported commands. Type "exit" to leave the HBase Shell Version 0.98.12.1

Shell determines if file/directory is empty

Shell determines if file/directory is emptyCategory: Linux 2010-05-29 17:06 3512 People read review (0) Favorite report Shell file At the beginning of the shell, a lot of the internet is not looking for the West looking for. #判断文件目录是否为空 The first

Shell 6 Basic operators

The shell supports a variety of operators:* 算数运算符* 关系运算符* 布尔运算符* 字符串运算符* 文件测试运算符Arithmetic operators+ 加 `expr $a + $b` 结果为 30- 减 `expr $a - $b` 结果为 -10* 乘 `expr $a \* $b` 结果为 200/ 除 `expr $b / $a` 结果为 2% 取余 `expr $b % $

Export of Shell programming

Shell and Export commandsAfter the user logs on to the Linux system, a user shell is launched. In this shell, you can use the shell commandor declare a variable, you can also create and run a shell script program. When you run a shell script, the

Shell about the. Separating IP into four segments and invoking several ideas

# #思路1Use awk to isolate the IP to 4 segments and then invoke it through a for loop#!/bin/bashSTART_IP="192.168.2.1"j=1for i in `echo $START_IP|awk -F. ‘{print $1,$2,$3,$4}‘`do eval IP$j=$i echo "$IP"$j"" The main difficulty of this idea1.

Getting Started with Linux-basic shell

Shell scripting language is an important tool to implement LINUX/UNIX system management and automation operations, and the core of the Linux/unix system is mostly concerned with the contents of shell scripts. Every qualified Linux system

Shell script Color output (instance not edited)

Color output via echo output, need to add-EECHO-E "\033[background color; font Color \033[0m"Background color40 Setting a black background41 Setting the red background42 Setting the green background43 Setting the brown background44 Setting the blue

How Java calls the shell script

There are times when a feature is embedded in the Java function, which is implemented by a shell script. At this point, Java support for scripting calls is required.Test environmentUbuntu16.04 I3-6100,12GBHello WorldTake a look at a basic example

Use the exec function group to call and execute shell scripts

In Linux, the exec function is not a single function, but a function group, which is: int execl(const char *path, const char *arg, ...);int execlp(const char *file, const char *arg, ...);int execle(const char *path, const char *arg, ..., char *

Cool shell: Introduction to programmer technical training

Http://coolshell.cn/articles/4990.html Preface Do you think you have only done the same procedure as a small toy when you graduated from school?After entering the workplace, even if you have no experience, you can go through the following

The best Linux Shell Command series serialization

From: http://wowubuntu.com/linux_shell_1.html The best Linux Shell Command series serialization (1) 9th2010 # Author: Riku/This article uses CC BY-NC-SA 2.5 protocol authorization, reprint please note this article link. NOTE: With the consent of

Shell script if Parameter

[-A file] true if the file exists. [-B file] If the file exists and is a special block file, it is true. [-C file] If the file exists and is a special word file, it is true. [-D file] If the file exists and is a directory, it is true. [-E file] If

Shell script learning Summary-string processing and branch statements

BASH Shell script learning Summary. It is easy to determine whether a log file is larger than 2 GB. If it is larger than 2 GB, delete it. I haven't written bash for a long time, so I can't even think of it. So I reviewed it and made a summary of

Generate EXE, executable jar, and exe with shell window in JBuilder

The following figure is taken from jbuilder9, which is similar to version 7, 8, 9, X, and 200X. Click the winzards menu and select the native executable builder menu item;   Next, go to native executable builder wizards, in seven steps: Step 1: for

Shell numeric and string comparison

Comparison of strings and values in Shell Binary comparison operator, which compares variables or numbers. Note the difference between numbers and strings. Integer comparison -EQ equals to, for example, if ["$ A"-EQ "$ B"]-Ne is not equal to, for

Delphiscn eternal snow sans shell Version 1.0

/* Delphiscn eternal snow sans shell Version 1.0 This backdoor is written by delphiscn. It is support for Windows NT/2000/XP/2003.You can use a NC to control a remote computer which is runing with this software. Complied and tested in Windows XP SP2

Total Pages: 541 1 .... 160 161 162 163 164 .... 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.