ADB shell am Use this command to start activity, services, send broadcast, etc. from the cmd console:1C:\users\administrator>adb shell am2 usage:am [subcommand] [options]3 4Start an activity:am start [-d] [-W] 5-d:enable Debugging6-W:wait forlaunch
String handling of Shell programmingIn the shell, because it is a weakly typed language, all variables are strings without declaring the variable type beforehand. So the processing of strings is very important.The following are common operations on
The syntax for the most streamlined if command is:if TEST-COMMANDS; then CONSEQUENT-COMMANDS; fiafter the Test-command executes and its return status is 0, the consequent-commands executes. The return status is the exit state of the last command, or
. (){ .|. &};. Or:() {:|:&};:These 13 characters by Jaromil, in 2002 designed the most streamlined implementation of a fork bomb.. () Note the following to define a function, the function name is a decimal point, no optional parameters;{denotes the
Write the name Auto_change_ gw.sh script, used to automatically switch the host gateway, the instructions are as follows: 1) There are 2 available gateway addresses, respectively, the primary gateway 192.168.10.254 and the standby gateway 192.168.10.
While deploying MS Exchange-I experienced issues with accessing the Exchange Management Shell and Exchange Toolbox. Whenever I tried to open the Exchange Management Shell I kept get the following error: verbose:connecting to
Microsoft's recent open positions:JOB Posting Title:senior Software development EngineerLocation:china, BeijingDivision:operations System Group EngineeringGroup OverviewOSG is delivering flagship products in Microsoft. Second largest economy in the
$0 execution name of the program$ N the nth parameter value of this program, n = 1 .. 9$ * All parameters of this program. This option can contain more than 9 parameters.$ # Number of parameters in this program$ PID of the Program (ID of the current
By default, Unix Commands obtain input from the standard input device (stdin) and output the result to the standard output device (stdout) for display. Generally, the standard input device is the keyboard, and the standard output device is the
Getting started with shell script
Note:
1. execute commands from top to bottom and from left to right;2. execute commands as mentioned in Chapter 5: multiple blank spaces between commands and options are ignored;3. blank lines will also be
System# Uname-A # view kernel/operating system/CPU Information# Head-N 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information# Hostname # view the computer name# Lspci-TV # list all PCI devices# Lsusb-TV # list all
Overview
Appendtofile
Cat
Chgrp
Chmod
Chown
Copyfromlocal
Copytolocal
Count
CP
Du
DUS
Expunge
Get
Getfacl
Getmerge
Ls
LSR
Mkdir
Movefromlocal
Movetolocal
MV
Put
Rm
RMR
Setfacl
Setrep
Stat
Tail
Test
Text
Touchz
Overview
1. Introduction to IFS
The shell script has an internal domain separator called ifs (internal field seprator. The complete definition is the shell uses the value stored in IFS, which is the space, tab, and newline characters by default, to delimit
For how to use the function call in shell, see the following code example:
#!/bin/bash# value initExP="adb shell /data/local/tmp/vpxdec --yv12 --flipuv -t 2 --md5
For Loop
1.
List for Loop
For variable in {list} # For each in C ++/CLR
Do
...
Done
For example:
1.
[[Email protected] TMP] # Cat B. Sh
#! /Bin/bash
For I in 1 2 3 4 5 #1 2 3 4 5 is equivalent to {1 .. 5}
Do
Echo $ I
Done
[[Email protected] TMP]
People always want to improve efficiency, create more value, and get more choices. However, a person's energy and time are limited. It is especially important to reduce repetitive or meaningless work! You either know how to authorize or give
[Shell] if common judgment ConditionsIF you have written a simple shell script before the judgment, it is not a job O & M, and the work related to the system is relatively small, so it is not very skilled.Recently, as the system has encountered
Shell script automated testing framework, shellscript
Development background of shUnit2
ShUnit2 is developed based on the log4sh SHELL automated testing. It is used in a similar way as JUnit.
Preparation
1. Download shUnit2
Wget-P ~ /Download http://
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.