摘要: #!/bin/bash file1=`du -sm /var/www/vhosts/|awk '{print $1}'` ps=`ps -C rsync --no-header|wc -l` if [ "$file" = "11517" ];then echo "files downloaded!" 阅读全文
posted @ 2020-12-24 22:11 tigergaonotes 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding = utf-8 import os files = os.listdir('/opt') for file in files: print file 阅读全文
posted @ 2020-12-24 22:09 tigergaonotes 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/expect spawn /usr/bin/ssh root@192.168.43.43 -p 22 expect "password:" send "tigergao\r" expect efo interact 阅读全文
posted @ 2020-12-24 22:08 tigergaonotes 阅读(53) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #@es_check #@date 2019/11/26 #@auth tigergao status=`curl -s GET "http://172.16.71.100:10290/_cat/health?" | awk '{print $4}'` if [ $statu 阅读全文
posted @ 2020-12-24 22:07 tigergaonotes 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-24 22:05 tigergaonotes 阅读(112) 评论(0) 推荐(0) 编辑