I wrote a script and run it before going to work every day. I emailed myself the check result report and forwarded it to the Internet mailbox of the text message notification, you can check whether there are any faults or servers before you go to work.
The inspection content is constantly improved. Now you can know whether all the IP devices on the attendance ma
LVS can use IPVSAM-LN to view the situation of the RS node, when the RS after the shutdown, when the RS automatically added after the restoration, Nginx can not view, need to install plug-ins or write their own script implementation;The reverse proxy is configured as follows: (the server removes the preceding space, in order to facilitate later scripts to use SED to do text replacement;)[[email protected] vhosts]# Cat Upstream01.confupstream Backend {
Script: check_log.shMain function: Used to check whether the log file is uploaded to the FTP server, if not uploaded, send an email alarm-------------------#!/bin/bash#autochecklogfilesandnoticebyemail#bycolin#revision on2015-11-03# #Useage: ./check_log.sh/home/upload/#10*** */root/check_log.sh################################ #RUN_LOG = '/var/log/check_log_run_stats.log ' [ !-f${run_log}]touch${run_log}echo
Write a script to check whether a file exists. If so, output its details. If not, the system prompts that the output file does not exist. Before providing this script, let's take a look at the following commands: file upload.zip.
1. # ll-h upload.zip
-Rw-r -- 1 root 3.3 M 06-28 23:21 upload.zip
2. # file upload.zip
Upload.zip: Zip archive data, at least v1.0 to e
Python script to implement the Xiami check-in function, python Xiami
This article describes how to use a Python script to sign in to Xiami. We will share this with you for your reference. The details are as follows:
Overview
This script completes the automatic logon and sign-in function.
The urllib, urllib2, and cookie
Copy codeThe Code is as follows :#! /Bin/bash
# Main ---
Network = 192.168.1
Ping_count = 3
IP = 1
:> IP_use
:> IP_idle
:> Ping_action
Echo "'date" + % Y % m % d % H: % M: % S "'-----> run the script ......"
While [$ ip-lt 255]
Do
Host = $ network. $ IP
Echo "--------> start to check if $ host server communication is normal. ping times $ ping_count ."
Ping $ host-c $ ping_count>. ping_tmp
Sleep 1
Cat. ping_
When the PostgreSQL server process down is detected, the running state is no action# more Pg_server_check.sh#!/bin/shExport Path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binPrefix=/etc/init.ddaemon= "$prefix/postgresql"Runn_str= "Server is running"pg_status= ' $DAEMON status|grep "$RUNN _str" 'Log_path=/opt/croncheck_log= $LOG _path/pg_server_check.logerror_log= $LOG _path/pg_server_check_error.logecho "$Pg _status"Dt_str= ' date + '%y-%m-%d%h:%m:%s 'If [-z] $Pg _status "]Thenech
Check the Javascript script syntax integrated in the Visual Studio environment.
1. You can directly check JS files or the script syntax on HTML and aspx pages.
2. Use it directly in the integration environment. Double-click to locate the syntax error.
3. Support for gb2312 and UTF-8 formats.
For configuration and u
Tags: no signatureSQL data Script import always error (Verify script syntax is correct) "1064-you has an error in your SQL syntax; Check the manual-corresponds to your MariaDB server version for the right syntax-use near ' DROP TABLE IF EXISTS ' p W_members ';
CREATE TABLE ' pw_members ' (
' uid ' int (' @ Line 1 ')The error is that there is an error in the first
For gdb debugging, check whether the file is an executable file, instead of the script GDB. After debugging and loading the execution program, the prompt notinexecutableformatgdbconst appears: GNUgdbRedHatLinux (5.5) Copyright2008Free... for gdb debugging, check whether the file is an executable file using file instead of the
to make it easy to check MySQL or RDS MySQL database built in ECS server, a MySQL test script is written, which can be detected when a friend is unfamiliar with command line operation. Script:http://jinxiang.oss-cn-hangzhou.aliyuncs.com/mysqltest_gbk.shScript Execution methods:wget http://jinxiang.oss-cn-hangzhou.aliyuncs.com/mysqltest_gbk.shchmod 755 mysqltest_gbk.sh./mysqltest_gbk.shDemo:1, enter MySQL r
A simple script for detecting whether the mysql master/slave is normal or not bitsCN.com
Script for simple mysql master/slave check
I want to use a simple script to test whether the master and slave databases are normal.
01 #! /Bin/bash0203while getopts "h: u: p: P:" arg # The colon following the option indicates
Recently, MVC and jquery are used, and JavaScript debugging is inevitable. When setting the IE option, I encountered an extremely helpless problem. I canceled "Disable script debugging (IE)" And saved and exited, the next time I open it again, I found that the check is still being checked and repeated for multiple times, because I was prompted to exit ie for the next start to take effect, so I turned it off
When using the Maven plugin in Eclipse, run as maven build with an error:-dmaven.multimoduleprojectdirectory system propery is not set. Check $M 2_home environment variable and MVN script match.Baidu to solve the method:You can set up an environment variable m2_home point to your MAVEN installation directorym2_home=d:\apps\apache-maven-3.3.1And then in window->preference->java->installed Jres->editSet in de
Download the script program and Check Method of the source code package required by LFS, lfs source code
/********************************************************************** Author : Samson* Date : 04/27/2015* Test platform:* gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2* GNU bash, 4.3.11(1)-release (x86_64-pc-linux-gnu) * *******************************************************************/
When the LFS document
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.