Md5 encoded using the curl transformation, scripted page to see if there is a change
! # / bin / the bash # writing the first value Result = -k -s www.baidu.com curl `| the md5sum | awk '{the FS =" "}' '. 1} {Print $'` IF [-e File ! -a -s file]; the then echo "True:" $ >> the Result file #exit 0 fi # read the file contains a line last keyword, compared with the current value, if not the same as the police, and the current the value written into the file last_line `egrep =" True "-NR file | awk 'the BEGIN {the FS =": "}' '. 3 the END {Print $}'` result_now = -k -s www.baidu.com curl `| the md5sum | awk '{the FS = ""}' '. 1} {Print $' ` IF [$ result_now == $ last_line]; the then echo" the OK " echo" True: "$ result_now >> File #exit 0 the else echo" NO " echo" Flase: "$ result_now >>file #exit one be