How to quickly write a startup script , mainly through the following several1, logical smoothing
can be in TXT file, have pseudo code way, form system, List order, then add code in a little bit
Determine if the program is running through the PID process file
Set 3 modules (on, off, Reload)
Then use the case statement to invoke the 3 module to implement the startup script function
Re
, we can obtain the rigid body attached to it.Function ontriggerstay (Other: Collider ){// If the other collision tool also has a Rigid Body// Apply a force to itIf (other. Rigidbody ){Other. Rigidbody. addforce (0, 2, 0 );}}Or we can use the collision tool to obtain any component attached to the same object.Function ontriggerstay (Other: Collider ){// If otherscript is attached to another collision Generator// Call the dosomething// Most of the time,
, Indiakerry Miller, USA command output is: Adam Bor, Indiakerry Miller, USA
2 Concept: Pipelines, redirects and Backtick
These are not system commands, but they are really important.
Pipe (|) The output of one command as input to another command.
grep "Hello" file.txt | Wc-l
Searches the file.txt for a row containing "Hello" and calculates its number of rows.
Here the output of the grep command is used as input to the WC command. Of course you
/format:hform.xslEnter Password:* * * *Explain:1 The global switch output indicates where the information is stored.2 The global switch format indicates what format to use, as long as those formats are available, you can refer to the *.xsl file in the C:\WINDOWS\system32\wbem directory, and you don't even have to worry about where they came from. Look next to each other, you can certainly find what you like.Part two: Using scripts to understand WMIThe
I. Description1, the login script is placed in the Init;2, to the session to make a connection to ensure the success of the login;3, the user name to do the file parameterization, to ensure that each iteration of the user name is different, persistent, password unified 123456;In fact, I want to be executed with the registration script so that the username is proc
The first unit Kickstart script production1.kickstart ScriptKickstart script is a script file that automatically answers all problems during the installation of the systemThis file enables automatic installation of the systemAfter the system is installed, it will be generated in the root home directory of the system.Anaconda-ks.cfg This file is the kickstart
the file exists
The touch command is used to create an empty file, and the chmod command is used to assign weights.
Special attention:
Shell script to the space requirements of the strict, must pay attention to the space, otherwise error you check are difficult to check.
If condition use end must have fi end, otherwise will error, also is difficult to check.
Finally, this is the script
If statement1. What is a conditional test operation?To make a shell script "intelligent", the problem is to differentiate between different situations to determine what action to take. The shell environment, based on the return status value ($?) after the command executes, determines whether the execution succeeds, and when the return value is 0 o'clock, the execution succeeds, otherwise it indicates a failure or an exception. You can test specific co
)
Address of the first version: http://www.oschina.net/code/snippet_779765_44045
-->
$velocityCount-->
-->
#! /Usr/bin/env php
** The bat-test.php script content is as follows:
159);} function B ($ line) {do {bat: Y ("I am passing the Parameter \ $ line = $ line"); usleep (500000 );} while (mt_rand (100,999)> 359);} function c () {global $ x; bat: notify ("the initial variable values between multiple tasks are not affected, \ $ x = $ x "
1. For command (1) syntax for Val in list; Do commands doneThe list parameter provides some values for the iteration, and the Val value is assigned to the value in list, knowing that the list polling ends.Commands can be one or more shell commands, echo $val can view the value of the current loop (2) Read the value in the list $cat Test #!/bin/bash # Basic for command for test in A B C; do echo the next Val was $test
recording is complete, click the Black button next to the toolbar to end the recording.2. Select "File"--Export to Jmeter ...3. Open the jmeter tool and select "File"--> "Open" to select the file (. JMX type) You just saved and import the file in. the recorded script must be added HTTP Cookie Manager , or the script fails to run, remember.Now for JMeter, a test
Shell script programming 2
Custom environment variables (global variables)
Set Environment Variables
If you want to set environment variables, you must use the export command after assigning values to the variables or setting the variables, declare with the-x Option
The built-in commands can also complete the function (Note: Do not add $ before the variable name when outputting the variable)
Format:
① Expor
option used with the serviceIoprio be 2Service netd/system/bin/netdSocket netd Stream 0660 root systemThe options used with the service are socket,user,group,oneshot.OneShot indicates that the service is started only once, and if there is no oneshot option, the executable will persist-restarting if the executable program is killed.Properties are some of the values used in the system and can be set up and read and written.SetProp ro. Hidden_app_mem 5120//setprop for setting propertiesSetProp ro.
1. Install apt install chkconfig
2. Log On with the root account and add the following content to VI/etc/rc. d/init. d/mystart:
#! /Bin/shEcho "Hello start up script! ">/Home/liaoyong/mystart.txtExit 0The function of this script is to create a text file in my home directory, and the content in it is the echo content Hello start up
2. Toad Python Script learning note Two basic commands to playThis famous article:"Success stems from the discovery of details, no details, no opportunities, attention to detail means to create opportunities." A commonplace trifle may be the key to opening the treasure trove of opportunities! "Come home from work, let's take a look at some common basic commands.Welcome reprint, Reprint please indicate sourc
With the popularization of mobile devices, the enterprise's network propaganda can not be limited to the PC side, but also need to build on the mobile side. For the company's website, used to do the PC-side, of course mobile phones and other mobile terminals can also be accessed, but the user experience is certainly not as fully suitable for the convenience of the mobile phone. After we have made a WAP mobile website for our website, if there is a user to visit our Enterprise top-level domain we
Construct a script engine using C language (2)
Author: kevin_qing
Please note
Considering that the script compiler can be implemented independently as a process, and the compiler needs to debug the results of the script compiler,
At present, the development starts from the underlying Virtual Machine section.
1. Virtual
System Process zygote (2) -- zygote. rc Script, zygotezygote. rc
The sunset is fading down. Who can draw the beauty of the evening? Where is my home and my home? My lover, I think about you like this. Do you have the slightest concern? -- Xu Zhimo's dream of the seaside
Ilocker: Follow Android Security (New entry, 0 basics) QQ: 2597294287
In the previous note, the zygote process was started as a service by
Write a script: Use the function to complete1, the function can accept a parameter, the parameter is the user name;Determine if a user existsReturns the shell and UID of this user if it exists, and returns the normal status value;If it does not exist, it says that the user does not exist and returns an error status value;2, the function is called in the main program;Extension 1: In the main program, let the
This article Reprinted from: http://blog.csdn.net/yushanddddfenghailin/article/details/17250933
Event functions (2)
Function checkpassword (password: string): Boolean;
If the installer finds this function in the Pascal script, it automatically displays the password page and calls checkpassword to check the password. If true is returned, the password is accepted. If false is returned, the password is rejecte
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.