supposed to be circulating 5 times, why the cycle of 10 times? , the original addusers.txt is separated by a space, while the for loop reads the file, any whitespace character can be read as a delimiter. The following is an example of a while loop:[[Email protected] ~ ]$ vim useradd_while01.sh[[email protected] ~ ]$ Cat useradd_while01.sh #!/bin/Bashcount=0 whileRead LINES Doecho $LINES let COUNT+=1 DoneAddusers.txtechoecho"$ looped $COUNT times" [em
Yy.cmdOK, all operations are done automatically.The rationale of the script is to use awk to read the configuration file and use the expect script to complete the automatic interaction, so on your springboard (just install the springboard) you have to have awk, expect; This script uses bash, so it needs it, if not, Yo
Article Title: linux Server batch binding ip scripts. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In order to optimize the Google ranking of websites, it is certainly impossible for 200 or 300 websites on a server to use one Ip address. Therefore, we generally need around two hundred Ip addresses on our servers
Document descriptionThe shell script is designed to provide a relatively automated solution for the patrol of a large number of Linux servers. The script consists of three parts: shellsh.sh, checksh.sh, file.txt; these three files need to be placed in a folder under the root permission to execute, indispensable.Script usageThe IP address of the server to be patrolled and the corresponding password are all p
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
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
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 ./nmap-payloads exists, but Nmap is using /usr/local/bin/../share/nmap/nmap-payloads for security and consistency reasons. set NMAPDIR=. to give priority to files in your local directory (may affect the other data files too).Stats: 0:00:00 elapsed; 0 hosts completed (0 up), 1 undergoing ARP Ping ScanARP Ping Scan Timing: About 100.00% done; ETC: 00:31 (0:00:00 remaining)Nmap scan report for 172.25.65.100Host is up (0.00025s latency).MAC Addres
MYSQL registration Start and Stop unmount batch processing script (Supplement)
The batch file that was written earlier when the mysql interface was debugged.
Register and start my_install.bat
@echo offset MYSQL_DIR=%~dp0rem set MYSQL_DIR=%cd%if not "%MYSQL_HOME%"=="" ( if not "%MYSQL_HOME%"=="%MYSQL_DIR%" ( e
Experimental environment1. Local Host192.168.1.172. Remote Host192.168.1.18192.168.1.19Experimental objectivesUse expect non-interactive scripting with SCP commands to implement SCP bulk transfer of local files to a remote host.Scripting considerations1. Ensure that the local host is installed expect2. The target host does not need to enter "yes" when the SCP is not the first time to login3. Note The order of the list files and variables###########################################################
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 authentication or database authentication. In the end, these virtual users will be mapped to a system user. The default directory accessed is the home directory of the System user.4. Common status information codes
1 **: prompt information
2 **: Status Code of successful execution
3 **: You need to provide additional information codes. For example, if this status occurs after you enter the user account information, you are prompted to continue e
. All operations related to data transmission are automatically completed by the system according to the user's setting. We can according to their own actual situation, through the above mentioned method, set up the corresponding "control file" to achieve the automatic transmission of relevant documents.
The----concludes with a few additional points:
----1..profile files for user environment settings files, each user account in the home directory has
}${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
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]
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.