Today in Ubuntu Kylin installed VirtualBox, and then I want to delete a new point, the result of normal situation can not be deleted, I will find the VirtualBox directory all deleted,And then through the Apt-get Remove and other commands can not be deleted, the title shows the errorChild process installed Pre-removal script returned error number 1On the internet to find a lap, a great deal of effort to find the following solutions, record,Http://www.x
One, the child process has installed the Pre-removal script returned an error number 1 or 2 workaround:sudo gedit/var/lib/dpkg/statusFind package: Remove the description of this section and delete it before the next package:xxx. After the archive, the operation will be OK.Second, the child process has installed the Post-Installation script returned an error numbe
This article mainly introduces 2 methods of referencing and invoking another script file in the shell script, this article introduces the syntax of the two methods, then gives the actual usages and some places to pay attention to, the friend who needs can refer to the following
In Java,python, you can use the import method to make calls between scripts or module
Parameter description
1:$# indicates the number of incoming arguments executed by the script
2:$* indicates that the execute script passes in the argument list
3:$$ represents the Process ID
4:$@ indicates that the execute script passed in all parameters
5:$0 to execute script
One week PowerShell script Day 2: UDP interactive PowerShell script
Welcome to the second day of the week's PowerShell script. Today I will introduce the interactive PowerShell script using UDP. I like UDP, because many security teams and vendors will habitually ignore it. I
JMeter Learning (2) recording script, jmeter learning recording script
Environment
Badboy version 2.1.1
JDK: 1.7.0 _ 67
Apache JMeter-2.11
Bytes ----------------------------------------------------------------------------------------------------
JMeter recording scripts can be used in multiple ways. The most common method is to use a third-party tool badboy for
Enterprise Utility Script 16Enterprise Case: Write Network Service standalone process mode rsync system startup scriptFor example:/etc/init.d/rsyncd{start|stop|restart}.Requirements:1. To use the System function library technique.2. To use a function, not a lump of Shi's way.3. Can be managed by chkconfig#!/bin/bash[-f/etc/init.d/functions]./etc/init.d/functions| | Exit2start () {if[ ' lsof-i:873|wc-l ' -gt
The returned results may need to be verified during case construction. You can use the groovy script to complete this function. The specific steps are as follows:
(1) Use the groovyutils provided by soapui to retrieve the returned XML message xmlholder
Def policyutils = new COM. eviware. soapui. Support. policyutils (context)
Def holder = policyutils. getxmlholder ("balancequery # response ")
(2) Us
[Unity] Chapter 1 Unity Script Development basics, Chapter 2 unity Script Development
Classification: Unity, C #, VS2015
Date created: 1. Introduction
The attraction of a game lies in its interactivity. If the game has no interaction, the scenario will be more beautiful and exquisite, and it is difficult to call it a game.
In Unity, game interaction is implemente
The awk Passes parameters to the script (2). The awk script Passes parameters.
An important limitation of command line parameters is that they are unavailable during the in process. That is, they are available only after the first line is entered. Why? This is a confusing part. Parameters passed from the command line are processed like file names. The value assig
In Java,python, you can use the import method to make calls between scripts or modules, for example:
Copy Code code as follows:
>>> Import Math
>>> Math.sqrt (4)
2.0
How do you invoke other shell scripts in the shell, or variables in other scripts, functions?
Method one:. ./subscript.shMethod Two: source./subscript.sh
Attention:
1. Between two points, there are spaces, you must pay attention to.2. Two scripts are not in
-ie.height)/2)Ie.doc ument. Write ""Ie. Visible = 1Wscript. Sleep 5000Ie. Quit
After the above code is executed, an IE window without a title bar or border is displayed in the center of the screen, lasting 5 seconds.In the window, there is a blue-colored black text "this is a logo ".
After the script is Gui-based, the interaction with the user is more intuitive. There are a lot of parameter tools like NM
processed. The actions after end are executed once after the entire file has been processed.The awk command can use variables like the C language (but do not need to define variables), such as counting empty rows in a file$ Awk '/^ *$/{x=x+1;} END {print x;} ' testfileJust like the shell environment variables, some awk variables are predefined and have special meanings:awk common built-in variablesFileName of the current input file, which is a read-only NR line number for the current line, is
(LF) to DOS format.Sed "s/$ //" # method 1Sed-n p # method 2# DOS environment: Convert the DOS newline character (CR/LF) to Unix format.# The following script is only valid for UnxUtils sed 4.0.7 and later versions. To identify the UnxUtils version# Sed can use its unique "-- text" option. You can use the help option ("-- help") to view# Whether there is a "-- text" item to determine whether the version is
Tiny c Compiler (TCC, or Tiny CC) is the smallest C language compiler in the world.TCC has a prominent feature: it is possible to use the C language as a script. The trial record is as follows:First of all, install TCC.Under Windows, download the Execute program: tcc-0.9.26-win32-bin.zip. Unzip to C:\TCC and add C:\TCC to the path directory.Test if the installation is successful, enter command tcc-v in the command Line window and see the TCC version n
())
# list all files in the directory
Files = Os.listdir (dir)
# Open the file log you want to delete
FH = open (logfile, "w+")
# traverse the file to print out the creation time of the file
For f in Files:
# ignore. Files that begin with
If F.startswith ('. '):
Continue
# Ignore directories in current directory
If Os.path.isdir (Os.path.join (dir,f)):
Continue
# Get file Modify time and convert to timestamp format
File_timestamp = Os.path.getmtime (Os.path.join (dir, f))
File_time_f = String2t
① Source code save location:/usr/local/src/② Software Installation Location:/usr/local③ How to determine the installation error: the installation process stops; error, warning, or no are prompted.3.3 unload the source packageDo not need to uninstall the command, directly delete the installation directory can not leave any junk files.4 Script installation Package4.1 Script installation Package(1) The
"\\\r '/"# The commands used under the ZSHSed ' s/$/\r/' # gsed 3.02.80 and later
# DOS Environment: convert UNIX New line character (LF) to DOS format.Sed "s/$//" # method 1Sed-n P # Method 2# DOS Environment: Convert DOS New line character (CR/LF) to UNIX format.# The following script is only valid for unxutils sed 4.0.7 and later. To identify the unxutils version of the# sed is available through its uni
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.