Monitor site URL is normal

Source: Internet
Author: User

Test it:



#!/bin/sh

function usage () {#<== ning niece credential mustard 暟

echo $ "usage:$0 url"

Exit 1

}

function Check_url () {#<== gui € Jung 婾 RL credential mustard 暟 Ã? wget--spider-q-o/dev/null--tries=1-t 5 $

#<== stated expiry Refer identify apply wget HTTP corporation wucun necklace and 闀挎柟褰 Note 曪 紝 http 欓 噷 fermium? 1 Hao distinguish ionizing credential mustard 暟 fax锛 ã 弬 ã?    #curl-S-o/dev/null $ #<== stated expiry Refer identify Apply Curl HTTP corporation Wucun necklace and 闀挎柟褰 note deceived 篃 display dress Xixi ョ crypto ã? If [$?-eq 0]

Then

echo "is OK."

Exit 0

Else

echo "is fail."

Exit 1

Fi

}

function Main () {#<== Juan takes indent-like €?     If [$#-ne 1] #<== moisten if you fax锛 ã mitsu fermium 勫 Juan 弬 indent help 紝 arrival Kong 墦 Å board house Animals ╁ takes indent help 紝 æ 愮 identify ãºã do you ID ã? Then

Usage

Fi

Check_url $ #<== 鎺 arrival absorbed credential Mustard 暟 fermium Âμà 紶 å è¡#̈亞 傦 紝 å insect ehegan called name boil fermium? * Fax锛 à lang http 欓 噷 ã?}

Main $* #<== http 欓 噷 fermium? * Hao distinguish ionizing copernicium semi mo Xixi one 鎺 arrival absorbed Fermium ECF of chain copy 弬 indent awarded Workspace Trickle coax takes indent board 弬 indent awarded 紶 called down takes indent board Search锛 閮 紝 ning brother apply gallium phone 硶


Monitor site URL is normal

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.