Batch export the shell script and informaticaobject of the ICA object
#!/bin/bash # -----------------------------------------------------------------------# Script Name: inf_impobj.sh# Purpose: To batch export mappings or workflows to xml files # Created by: indifferent_to# Date: 2014-11-26 # -------------------------
Open cmd, check the default location (directory) of the command line prompt, enter the directory, create a file with notepad ++, and enter@ Echo offRem indicates that the row is a comment.Rem enters the drive F. You need to switch the drive letter before entering the directory on the drive.F:CD \ myworkspace \Echo job is doneSave the file and name it GTD. BAT as an executable batch script.Then execute the script
Although batch processing can be edited using notepad, it is inconvenient and cannot be saved as exe. So I wrote an editor, which is very convenient and practical.
Zxu script
This Editor supports code translation to achieve the effect of supporting Chinese code. The built-in help documentation is very suitable for beginners.The program also has an original EXE compiler, which can convert the BAT file to t
A script that converts any file into a batch.The advantage of Base64 encoding is that the data size is compressed (compared with bin2str). The disadvantage is that it increases the processing time and script complexity.Because the efficiency bottleneck lies in the process of generating vbs in bat, it is still possible.Writing files using ADODB. Recordset is much better than debugging.Most of the tasks are d
Scan. vbe
Cscript scan. vbe web directory
Program code:
'Copyright InformationBr = "************************************" vbCrLfBr = br "* VBS batch Trojan script *" vbCrLfBr = br "* BY BanLG *" vbCrLfBr = br "*********************************** * " vbCrLfBr = br "cscript scan. vbe D: \" vbCrLf
'Trojan's addressMa = "'You can add a Trojan-infected page if it is not enough. Remember to separate it wi
------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
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(‘执行所用
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
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-
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.