------Create this file Autoinstall.batThe contents are as follows:@ECHO off@REM Add Adb.exe to PathECHO initialization ...@SET path=%path%;%cd%\adb@REM SET PATH@REM an infinite loop of labels: LOOPECHO waits for you to insert your phone ...ADB wait-for-device@REM Loop Install apk file in this directoryFor%%i in (*.apk) do (ECHO is installing:%%iADB install%%i)@echo offECHO is installed; change a cell phone!!!PAUSEGOTO LOOP@ECHO on------End of script c
This article mainly introduces the writing shell script, uses the ICONV batch to change the file coding the script code, needs the friend to be possible to refer to under.
Usage examples:
CD ~/workspace/xxxproject
~/iconv_shell.sh./*java
Okay, go straight to the code ~ ~
#!/bin/bash
If ["$#"!= "2"]; then
echo "Usage: ' basename $ ' dir filter '
exit
Download MongoDB installation files, unzip to D:\MongoDB;
To run the script:
@echo off SetMongobin=d:\MongoDB::Create a Data,log folder under the MongoDB folderMD%mongobin%\DataMD%mongobin%\LogCD%mongobin%\Binmongod--repair--dbpath"%mongobin%\data\db"Mongod--install--servicename"Mongodbmaster"-servicedisplayname "MONGODBR"--dbpath "%mongobin%\data\db"--logpath "%mongobin%\data\log\ MongoDB.log "--masterNet StartMongoDB@echoInstall finish!The
Testcomplete as an IDE for software automation testing, with a small number of interfaces for different people to run projects in different scenarios, how do I start it and execute its project under Windows DOS?Below is the command line provided by Testcomplete:TestComplete.exe[file_name[/run[(/project:Project_Name)|(/project:Project_Name/projectitem:Item_name)|(/project:Project_Name/test:test_name)|(/project:Project_Name/unit:Unit_name/routine:Routine_name)][/exit]][/silentmode[/errorlog:file_n
Python writes a multithreaded Ping host IP script 1. Write a script to Ping the host IP firstping_ip.pyimport subprocessimport time# 记录开始执行的时间start_time = time.time()# 定义用来 ping 的254 个 ipip_list = [‘10.3.1.‘+str(i) for i in range(1,255)] for ip in ip_list: res = subprocess.call(‘ping -n 2 -w 5 %s‘ % ip,stdout=subprocess.PIPE) # linux 系统将 ‘-n‘ 替换成 ‘-c‘ print(ip,True if res == 0 else False)print(‘执行所用
Reprint to http://my.oschina.net/u/660932/blog/117929One@echo offSetlocal enabledelayedexpansion:: Coder by Mark_li Powerd by IBAT 1.6CD "C:\Program files\mysql\mysql Server 5.5\bin":: Database name@set db=hrms:: User Name@set Username=root:: Password@set password=:: SQL Script to execute@set sqlpath= "C:\Program files\mysql\mysql Server 5.5\test_hrms.sql":: Connection to MySQL database and execute SQL script
Php script: use search engines to batch crawl Vulnerabilities
Sanner-Inurlbr is a good tool found on the author's foreign vulnerability platform that uses search for batch search. It uses the freebuf platform to share it with friends who love Security in China.The scanner can perform advanced search in the search engine, which can capture emails and URLs using GE
}${username_class}${nu_nn}${i} -password="$account" - A #帐号密码写入文件 + EchoAccount:"$account"Password"$password"|Tee-A"$accountfile" the Done - $ #新建帐号密码 theusernames=$ (Cat "$accountfile"|Cut-D':'-F2) the the forUinch$usernames the Do - Useradd $u in Echo$u |passwd--stdin $u the #强制登录修改密码 theChage-d0$u About the Done the the Echo "ok! Create a new $nu_amount account."If the students in the same class have a need to change 7 lines to useradd-g Username_class in the same gro
BAT batch One-key generation APK package script sharing
Place this bat in the COCOS2DX directory under the project.android of your project (modify variables).Asmaker uses the LUA file batch encryption algorithm under the resources folder to refer to my previous RC4 algorithm implementation.
APK the latest engineering code and COCOS2DX engine code for each packa
Mysql automatic batch backup script bitsCN.com
Get database name# Cat datanames. shPasswd = xxxxxxMysql -- password = $ passwd Show databases;EOFBackup Script# Cat mysql_backup.shThe retrieved system data library is stored in mysql.txt./Datanames. sh | grep-v "Database" | grep-v "ianformation_schema"> mysql.txt# Generate a database folder by date. The database c
Share a script that kills a process through the process name, no need to find the process number one by one kills, greatly improves the productivityHow to use: Kproc Program 1 Program 2 ...Script File Kproc#!/bin/Shprgn= ' basename $0' Tmpf="/var/tmp/$PRGN. $$"quit () {RM-F $TMPF Exit $1}#===============# # MAIN Entrance # #===============#if[$#-lt1 ]; Then Echo"Usage: $PRGN {process_name}"quit1Fiuid= ' ID-
[Windows] How to check whether python and pip are installed in the batch script?
A project at hand needs to configure the python environment for your windows machine and install python and pip (the python package management tool). Of course, you do not need to reinstall it if you have already installed python, so the question is, how can we check that python and pip have been installed on your windows syst
Objective:In the app testing process, often need to use some of the commands, such as the ADB, each time the command, although can deepen the impression, but personally think that is tedious and waste of time. This article posted some of the batches I used, and a little bit of tricks. Directory1. [View apk file information. bat]2, [automatic installation Apk.bat] 1. [View apk file information. bat]
@ECHO OFFECHO [view APK package Info]ECHO-------------------------------ECHO aap
When source insight is used on Windows platforms for development, there are often file format problems. We know that dos2unix can convert the DOS format to the Unix format, but it is better to have a ready-made batch conversion script.
#! /Bin/shForeachd (){Echo $1For file in $1 /*DoIf [-d $ file]ThenEcho "directory $ file"Foreachd $ FileFi
If [-F $ file]ThenEcho "File $ file"Dos2unix $ FileChmod-x $ FileF
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.