The background work has been done in the last section of the simple processing, basically to achieve the function has been finished, the following back to the code to make an adjustment, write a bad place to comb a bit,Add appropriate comments to
Original: You can also play Skype--get started with the development shell based on the Skype APISkype is by far the most powerful Im+voip software on the planet, and Skype has now changed the way 280 million people live in the world. You, deserve to
$0 the execution name of this program $ n the nth parameter value of this program, n = 1 .. 9 $ * all parameters of this program, this option parameter can exceed 9. $ # Number of parameters of the program $ PID of the Program (ID of the current
I wrote about a small automatic vote a year ago.ProgramBecause the website of the other party is limited to one IP address, only 10 votes can be cast per day, so this automatic voting program is mainly used to vote on the proxy server in the initial
I suddenly wanted to monitor the network card Traffic in Linux and didn't want to use cacti. I thought it was very troublesome to Configure SNMP. Ready-made tools seem to be useless. Decide to write a script by yourself.
Click (Here) Fold or open
Plants use shells to protect seeds and animals use shells to protect the body,ProgramThe shell is used to protect the software from decompiling or tampering. The shell encryption is a technology of Software Encryption and an extremely important
While do done, until do done (indefinite loop)
In general, the most common status of an indefinite loop is the following two states:
While[Condition] The status in the brackets is the limit type.DoDoIt is the beginning of the
Set in Shell
In bash, export TZ = "Europe/Moscow" date-u-s "2011-10-29 21:55:00"Setenv TZ Europe/Moscow in cshell
Program(Also set environment variables)
In Linux, change the time zone and take effect immediately.Setenv ("TZ", "Europe/Moscow",
ADO componentFrom: http://hi.baidu.com/meijun1234/blog/item/9b642ec24efd1130e5dd3bbd.htmlFor example, the system disables ADODB. Stream.
Used in ASP
Server. Createobject ("ADODB. Stream"), an error is reported.
Microsoft VBScript runtime error
This is a simple shell script, which contains a lot of shell script writing skills, although the script is compiled from other video tutorials, however, it has paved the way for me to write shell scripts in the future.
#!/bin/bash############## main
1. For Loop statementsBasic for loop of instance 1.1
#! /Bin/bash
For X in one two three fourDoEcho number $ xDone
Note: A "for" loop always receives a certain type of word list after the "in" statement. In this example, four English words are
========================================================== ==========This article is the original khler, and the original author information and the original link of this article must be kept completely and completely reprinted.
Author:
Shell Command Line writing rules
An understanding of the basic functions of shell command lines helps to write better Shell programs. When executing shell commands, multiple commands can be run on one command line, but the semicolon (;) must be
Today, I interrupted bash learning.
The first reason is that the book advanced bash Script Programming Guide is thick enough and has enough details. But this is not to say that it is very profound. This book is very good, but it is too entangled in
SELF: http://www.justwinit.cn/post/3702/
Shell time:A = 'date + % Y % m % d'
Echo $;
# Sh data. Sh
20101028
#! /Bin/sh
# Log
Mydate = 'date + % d % m % y'
# Append mydate to the variable logfile that holds the actual filename of the log
Logfile
Blog has been migrated, new address
Bytes ----------------------------------------------------------------------------------------
In practice, you need to test the correctness of shell scripts.
How can we test in the fastest and most effective
Learning bash notes-debugging shell programs
In shell, the simplest debugging assistant outputs the echo statement. Many echo statements can be put into the code for debugging, but it takes enough time to locate
The information to view. You may need
Common shell Command records in Linux and linuxshell commands
Hardware
CPU Problems
Lscpu # view cpu statistics. cat/proc/cpuinfo # view CPU details, such as the Model and clock speed of each CPU.
Memory-related
Free-m # view the memory in
Test File OPERATOR:
-B file: if the file is a special file, it is true.
-C file: if the file is a special character file, it is true.
-D file: if the file is a directory, it is true.
-E file: true if the file exists
-F file: if the file is a normal
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service