Ulipad, looking very comfortable.The code in the diagram is the result of this evening.All of a sudden I wanted to see Python, a language that many people say is elegant, so that at night it's all about matching the environment and doing something1 #Encoding:utf-82 ImportUrllib3 ImportUrllib24 5 #Name: Names to register6 #determine if name is available7 deftestusername (name):8Url="http://passport.hupu.com/index.php"9params={'m':'User','a':'Isusername','username': Name}Tendata1=Urllib.urlencode
Copy Code code as follows:
#!/bin/sh
#code by Scpman
#功能: Review and repair MySQL database tables
#将此脚本加到定时中, when the script executes, it reads the library, lists all the tables to be repaired, and then timings to start the repair
#修复过程中将损坏的表记录下来, after the repair is completed, the damaged table will be sent to the mail notification.
fix_logs= '/tmp/fix.log '
User= '
Pass= '
Check_fix ()
{
Dblist= '/usr/bin/find/usr/dlm_db/mysql/-type
In fact, you can also check other language syntax errors, the code in the Php-l to change the line#!/bin/bash##check_php_syntax.sh#copyright (C) 2014Check the entire directory PHP syntax error script
Abnormal process check and alert script
#! /Bin/bashRm-rf top100# Deleting an object that contains the previous recordTop-d 300-n 1-B | awk '{if ($9 >=100 $12 ~ /Linux/) print $2 "@ centoscn.com"} '> top100# Output the top information once in text format, and extract all user names whose cpu usage is 100% and whose process name is linux. Convert the user name to the mail address and store the top of the f
outstream. Charset = Outcode OutStream. Open ' Write to output file OutStream. WRITETEXT content OutStream. SaveToFile outFile, 2 ' adsavecreateoverwrite outstream.flush ' Close output file OutStream. Close Set OutStream = Nothing End Function ' ******************************************************************* ' Function: Getdirectory get current directory ' parameter meaning: ' ******************************************************************* function Getdirectory () Dim WshShell set Wshsh
Tags: Biztalk. SynopsisPowerShell script to perform a quick BizTalk health Check. DESCRIPTIONThis script gathers and displays a lot of information about a BizTalk server. Sections include Windows, computer, BizTalk artifacts, Event Logs and more.important! The script would check
Oracle SQL Tuning Health Check ScriptWe focus on the performance of database system, the main task of database tuning is to optimize SQL. Good data architecture design, with application system middleware and writing a beautiful SQL, is the future of the system on-line no fatal performance problems of the strong guarantee.In the CBO era, a SQL execution plan was diverse. The factors that affect the execution plan also change from the SQL writing rules
Customize a backup script based on your environment!
Description
How to use: Exec master.dbo.fullbackup1 ' s:\backup ', ' Suzhou ', ' full '
0. Backup type can only be full, diff or log, database name cannot be empty
1. Record each backup by creating a new history table
2. Check whether the database version is more than 2005
3. Check whether the current use
Tags: style blog http color OS SP data on 2014Today, the company gave a task, a project because the data is too large, causing SQL Server 2012 to run with a lot of memory, so to separate the previously infrequently used data. Ask to write a script that requires:1. Can get the table structure in the original database, the primary key is consistent. The constraint Relationship between table and table (foreign key, c
Scripts are used to checkLinux SystemsCloudCommon remote connections that occur on the serverProblem, the script can be placed in the server ahead of time, the problem can be the Web VNC login to perform the test.attached: Management Console terminal Web VNC mode login, reference:Http://help.aliyun.com/view/11108189_13574044.html?spm=5176.7189909.0.0.IuYepv:English version (Web VNC connection can download this version):wget http://jinxiang.oss-cn-hang
This article describes the MySQL regular batch check table repair and optimization table optimize the shell script, for MySQL database maintenance is very useful! As shown below:
#!/bin/bash
host_name=192.168.0.123
user_name=jincon.com
user_pwd=jincon.com
database=my_db_ Name
need_optmize_table=true
tables=$ (mysql-h$host_name-u$user_name-p$user_pwd $database-A-bse "show Tables ") for
table_name in $t
Questions: Redhat 6.3 Virtual Machine performs an IBM Installition manager installation with a direct return, prompting for a new message that does not support virtual machine hardwareSolution: IBM installition Manager relies on incomplete packages and uses shell scripts to check for and install missing packages#!/bin/SH# Check the 16 installation packages installed by IBM Installition Manager that are not
1#!/bin/Bash2prefix=192.168. the3num=14 while["$num"-lt"255"]; Do5 Echo-en"Pinging ${prefix}.${num} ..."6 Ping-c1-w1-t5 ${prefix}.${num} >/dev/NULL 2>17 if["$?"-eq"0"]; Then8 Echo "OK"Echo"${prefix}.${num}" >>Ok.txt9 ElseTen Echo "Failed"Echo"${prefix}.${num}" >>Failed.txt One fi ALet num= $num +1 - Done - After the test can ping the IP stored in the Ok.txt file, ping the different IP villages in the Failed.txt fileShell script 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.