In general, you may need to switch the root user to another user for execution during the automation process, such as: OralceHowever, the execution of the command will return to the root user, continue to execute other commands under the root user.You need to know the parameters of the SU command-C or-sLike what:# su-oracle-c "PWD"/home/oracleOrSu-oracle-s/bin/sh test.shThe relevant commands in the test.sh executed at this point are to be bin/sh, in other words, bin/sh supported commands can be
"Today we noticed jquery (...)." HTML () method returns HTML will filter out all the
After the test found, the new version of the (1.3.2, previous versions have not been verified) jquery (...). The HTML () method no longer exists (the HTML () method is an operation to read the DOM element data), but when writing data to a DOM element with the HTML method and the script in the data parameter, Another abnormal phenomenon: in Firefox (I use 3.6) browse
Tags: mysql slave zabbix masterCombine my other Zabbix to automatically discover MySQL and monitor blogs using the best:Link contact meThe script is simple and you can see it at a glance:[email protected] files]# cat libexec/slave.sh
#!/bin/bash
# #slave. SH
# #YES----1
# #NO----0
export mysql_pwd=xxxxxx
xstats () {
stats=$ (/USR/LOCAL/MYSQL/BIN/MYSQL-H127.0.0.1-UUSER_NAME-P$1-E)Show Slave Status\g "| grep "\}
If ["$"! = "Seconds_behind_master"];t
Tags: done file name footage quotes execute modify files Shel script actionExperimental material:[[email protected] test]# ls//This directory contains all the files ending in. txt and requires all to be replaced by the. Doc End1.txt 2.txt 3.txt 4.txt 5.txtWriting scripts[Email protected] test]# vim/root/25.shScript content:#!/bin/bashFor I ls * .$1 in//defines the range of values for I, as long as the files ending in the file are displayed (enclosed i
Starting from the game scripting language, this article analyzes the script basics set up by Mono and the script language mono.0x00 Preface
In my daily work, I occasionally encounter the following question: "Why have game scripts become indispensable in current game development ?". So this week I wrote an article about the game script and analyzed why the game
Go to (, 0,0)
This is the command to have the character go to the current map to specify coordinates
For example: Go to (450,100)
You can go to the NPC point.
Go to the door (, 0,0) to reach the map (, 0,0)
It's a door statement.
From one of the map's door points to the other map.
to (, 0,0) while playing
Under this command, the characters are in a combat state, and any reset script can trigger the default trigger
can also be used, such as your big
Statement **********************************************Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source, otherwise hold the copyright legal responsibility.Please leave a message or email ([email protected]) to indicate the error.This reprint must be kept here: http://blog.csdn.net/huangyanlong/article/details/39357927Deep Blue Blog: Http://blog.csdn.net/huangyanlong*****************************************************************************
So below the cloud Habitat Community editor for you to briefly explain some of the reasons for the script error and possible situations:1, the first page of the script because the technician does not have a good deal with the code compatibility or some details are not addressed to, resulting in page faults.But sometimes it does not affect use, such errors need to be solved by the program developer.2, the se
A few days ago wrote seven bull demo, with Bash wrote a convenient installation of the script, involving the path-related judgments, from StackOverflow, plus their own practice to tidy up.
Simple version
The following is one of the simplest implementations that can solve most of the problems that are displayed for soft links in the directory where the soft links are located
Lineos:false
Copy Code code as follows:
#!/bin/bash
Dir= "
such as in the QQ music pop-up "The current page script has errors"
Solutions
Method One,
In IE browser we click on the menu "Tools-internet Options"-"security" to enter after we click on the "Default Level", click "OK" can be very simple.
Method Two,
Delete all temporary Internet-related files
1. Start Internet Explorer.2. On the Tools menu, click Internet Options.3. Click the General tab.4. Under Temporary Internet files, click Settings.5. C
encoding Example
The following is a short example that contains JScript code that needs to be protected:
The page, which is run after the script encoder, looks like this:
Important: After coding, if you change the encoded text, even if only one word change. The integrity of the script is lost and can no longer be used.
My blog: Guofang's blog bbr is from the Google Community Black technology, you can focus on the github of this continuous development of TCP congestion technology.
What is the principle of this technique? I can not say clearly, see this explanation will understand more.
The original TCP traffic transmission, has not been able to adapt to the current Internet, we compare TCP traffic to the traffic on the road, and the TCP transmission tunnel is the highway, then:In the original TCP traffic transm
The shell script automatically telnet and executes the script simple usage of the remote machine [plain] #!/bin/sh (sleep 10; echo "username"; Sleep 10; echo "Password"; Sleep 10; echo "PWD"; Sleep 50; #echo exit) |telnet $ip here just connect to the remote machine and look at the current directory. Username/password is a telnet to the remote machine username, password sleep is a wait time, according
: Date_format (now (), '%y%m%d ')--20150124 can refer to http://blog.csdn.net/kangbrother/article/details/7030304 in detail.12. Type conversion to use cast can refer to http://www.nowamagic.net/librarys/veda/detail/2044.13. Conditional judgment, if then ... end if; If then.. else.. End If;Len () in 14.SQLSERVER corresponds to length () in MySQL.15. Modify the data1.Update`Order', OrderordertransSET`Order`. Cyclesort=Orderordertrans. RIDwhere`Order'. ' Code '=Orderordertrans. ' Code ';//support f
In the previous command Ls/var then in this command LS is the command keyword,/var is the parameter. So how do we do parameter passing when we're making a shell script ourselves?In bash, the first parameter is automatically placed in $ $, the second parameter is in the $ $, and so on. If the number of arguments is to two digits, then the referenced parameter becomes $ (10) $ (11).Try it first.If you want to calculate and valueWhen programming, it is i
Ubuntu running level, boot script description, ubuntu script
Description of Ubuntu running level and startup script
Directory Overview
1.1 introduce the Ubuntu Script directory
1.2 concept of Linux operating system running level
1.3 startup sequence of operating system self-starting scripts
1.4 concept of Linux operati
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.