Package a Docker image so that your friends can load and open a container and output hello and world to the specified file every second,
I. Two script codes
Dockerfile
1 FROM bash2 COPY . /usr/herui/3 WORKDIR /usr/herui/4 CMD [ "sh", "hello_world.sh" ]
Hello_world.sh
1 #!/bin/bash2 while true3 do4 echo 'hello world!' >> /usr/herui/hello_world.log5 sleep 16 done
have installed VS2013 and subsequent versions, ignore):http://www.microsoft.com/en-us/download/details.aspx?id=393142, TFS parameter Configuration in PL/SQLThe above installation package is very simple, easy to click a few steps, after the installation of the above software, open the PL/SQL tool, you can see on the toolbar to add the VCs menu. Click VCs, Open Project appears as in the TFS Parameters Config
open the console device/dev/console, and copy the two handle, so stdout,stdin,stderr all point to/dev/console, which opens the standard device input, output, standard error device, and then executes several external programs. Any one of these programs is successfully loaded into the user state, and the kernel boot is declared to be complete.2. Execute the/etc/inittab fileWhen Init starts successfully, all you need to do is parse the/etc/inittab
First to popularize a few knowledge:
Everything under Linux is files, including input, network connections, sockets, pipelines, etc.
The most relevant file opening number is the file descriptor (some people like to call the file identifier, the English file descriptor), the essence of the number of
A more complete Inno setup script, added to the INI file settings, a package of common features are available.[Plain]view plaincopy [setup]; Note: The value of appid is to identify the application separately. ; do not use the same AppID values for other installers. ; (Generate a new GUID, click Tool | To generate a GUID in the IDE.) ) appid={{a9861883-31c5-4324-bd9a-dc3271eeb675}; program name appname=is
JSP is an embedded Web page script, under normal circumstances can be opened directly with Notepad and other text tools, but also can be used in Dreamweaver and other web design tools friendly editing. However, this can only see the source code of the program. Of course, we can also use IE and other browsers to open the browser directly, if the JSP script is not
1) Problem phenomenon:Under Ubuntu execute the following script (While_count), error:-bash:./while_count:/bin/bash:bad interpreter:text file busy2) The cause of the problem:This happens because the script file was open for writing, and possibly by a rogue process which have
Tags: making a row file path import memory deployment Export data sqlcmd hints ToolsProblem Description:When a client server does not allow direct backup, it is often deployed by exporting database scripts-restoring the database,However, when the database export script is large, when you execute a script with Microsoft SQL Server Management Studio, you often expe
Tags: can bre sys coding argv NIS ica pre mysqlRemove the Description field from the script table as the file name and place the script in the same folder as the protocol and write the contents of the Testscript field to the file ImportMySQLdbImportSYSImportOS fromlxmlImportetree IP=sys.argv[1]
#ip= "10.0.20.252"Dir="S
Recently prepared to knock the "Thinginginjava" (people are more stupid, can only use this simple and rough method, haha)You have to import the Net.mindview packageImport process Reference this blog: http://blog.sina.com.cn/s/blog_631a75580100vcig.htmlIn the middle of all the files in the Com.mindview to deleteWrote a primitive Python script that was deleted in bulkSince this is the first time to write scripts for your own convenience (which may also
Sometimes you write scripts with errors that are listed like headings, mostly because your script files are edited under Windows. Windows, the end of each line is \n\r, and in Linux under the end of the file is \ n, then you edit the file in Windows under Linux open to see the end of each line will be more than one cha
Find out which part of the Python script is updated within 24 hours of the directory where the specified files are located:Note:1, first find all the directories containing aa.txt files2. Filter out the updated directory within 24 hours (86,400 seconds)3. Remember to add ' \ n ' (newline) when writing, and remember to exclude ' \ n ' (strip ()) when readingVI a1.py#!/usr/bin/pythonImport OSImport timeDir= "/root/python"now = Time.time ()For Root,dirs,
Recently research on CSS, not to go online analysis of other people's Web pages, but many of the Web site's CSS files are either written in one line, or a line is not, it seems extremely painful, so write a script to convert to a more readable format. Here's the script:
Import string, sys
import Re, Stringio
tab=4
def format (ss):
f = open (ss, "R")
PS: background, can not SSH access to the machine (generally in the middle of the fortress machine Block), but the use of domain names can be accessed in the case of the use of HTTP protocol file upload.Server-side code (accepts one end of post)#coding =utf-8frombasehttpserverimportbasehttprequesthandlerimportcgiclass posthandler (Basehttprequesthandler): defdo_post (self): form=cgi. Fieldstorage (fp=self.rfile, headers=self.headers, environ={' reques
vim/etc/security/limits.conf Add the following content* Soft Nofile 65535* Hard Nofile 65535and add boot bootVim/etc/rc.localUlimit-shn 65535Under Nginx process Check maximum file open number script#!/bin/bashFor PID in ' PS aux | grep Nginx | grep-v grep |awk ' {print $} 'DoCat/proc/${pid}/limits | grep ' Max open fil
We used to execute PowerShell in cmd:
Copy Code code as follows:
Powershell.exe-file A.PS1
Now want to do this in cmd:
Copy Code code as follows:
A.ps1
You need to select the default open mode for the PowerShell script as Powershell.exe, and you can do it with the right mouse button.
You can also use the following CMD to
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.