摘要:
{ "cmd": ["python3", "-u", "$file"] } 阅读全文
摘要:
#!/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!" 阅读全文
摘要:
#!/usr/bin/python #coding = utf-8 import os files = os.listdir('/opt') for file in files: print file 阅读全文
摘要:
#!/usr/bin/expect spawn /usr/bin/ssh root@192.168.43.43 -p 22 expect "password:" send "tigergao\r" expect efo interact 阅读全文
摘要:
#!/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 阅读全文
摘要:
阅读全文
摘要:
DB2的日志分为两种模式,日志循环与归档日志,也就是非归档和归档模式。下面就具体介绍一下这两种方式以及和备份归档设置的关系。 一、日志循环 这是默认方式,也就是非归档模式,这种模式只支持(backup offline)脱机备份,在备份过程中需要DB2停止服务。 在DB2中查看数据库设置,如发现如下信 阅读全文
摘要:
-e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为真 -f filename 如果 filename为常规文件,则为真 -L filename 如果 filename为符号链接,则为真 -r filename 如果 filename 阅读全文
摘要:
#!/bin/bash for i in `seq 1 20` do if ping -w 2 -c 1 192.168.43.$i | grep "100%" > /dev/null;then echo "192.168.43.$i is not reachable" else echo "192 阅读全文
摘要:
[root@centos6 /]# netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r 6 192.168.43.1 阅读全文