随笔分类 -  脚本天下

摘要:shell脚本 vim check_url.sh #!/bin/bash while true;do #echo "xxxx" da=`date +%F-%H-%M-%S` ret=`curl -o $da -s -w %{http_code}:%{time_connect}:%{time_star 阅读全文
posted @ 2022-03-31 17:03 清风木 阅读(236) 评论(0) 推荐(0) 编辑
摘要:分享db 分区分表的shell 16库与表 输出0到f ##输出0到f #/bin/bash for table in {0..15};do printf "%x\n" $table done 结果: 0 1 2 3 .. f #/bin/bash #输出00-ff 256表 for table i 阅读全文
posted @ 2020-11-06 16:41 清风木 阅读(142) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash ##备份-->生成md5文件->push->验证md5文件if [ $# != 5 ];then echo "bash $0 study /opt/case 3.3.5.509 'md5.1|md5.2|VERSION.txt|logs|*.ini|.git' 0" exit 阅读全文
posted @ 2018-07-09 19:22 清风木 阅读(208) 评论(0) 推荐(0) 编辑
摘要:@echo off set str1=disable_modules:set str2= - mine echo %str1% >> c:\minionecho %str2% >> c:\minion 阅读全文
posted @ 2018-07-09 19:13 清风木 阅读(1293) 评论(0) 推荐(0) 编辑
摘要:netsh wlan set hostednetwork mode=allow ssid=happyla key=1234567890netsh wlan start hostednetwork 阅读全文
posted @ 2018-07-09 19:13 清风木 阅读(269) 评论(0) 推荐(0) 编辑
摘要:#file.vbsSet fso = Wscript.CreateObject("Scripting.FileSystemObject")set f=fso.opentextfile("d:\11.txt")s=replace(f.readall,"192.168.1.1","www.baidu.c 阅读全文
posted @ 2018-07-09 19:12 清风木 阅读(4753) 评论(0) 推荐(0) 编辑
摘要:@echo offset max_days=15 set log_path="D:\backup_new" forfiles /p %log_path% /s /m *.* /d -%max_days% /c "cmd /c del /q @path" 阅读全文
posted @ 2018-07-09 19:11 清风木 阅读(204) 评论(0) 推荐(0) 编辑
摘要:iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 118.x.x.xiptables -A FORWARD -s 192.168.0.0/24 -j ACCEPTiptables -A FORWARD -d 19 阅读全文
posted @ 2016-05-17 14:26 清风木 阅读(373) 评论(0) 推荐(0) 编辑
摘要:限制端口 #!/bin/bashiptables -P INPUT ACCEPTiptables -P OUTPUT ACCEPTiptables -Fiptables -P INPUT DROPiptables -A INPUT -i lo -j ACCEPTiptables -A INPUT - 阅读全文
posted @ 2016-05-17 14:24 清风木 阅读(1109) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示