linux网关下drcom web自动登陆脚本

/etc/init.d/drcomd:

 #!/bin/sh
#
# The environment is cleared before executing this script
# so the path must be reset
#
PATH=/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin
export PATH
nohup drcomd > /dev/null >& &

/usr/local/sbin/drcomd:

 #!/bin/sh

 while true; do
ping www.baidu.com -c1 > /dev/null >& || curl -d "DDDDD=xxx&upass=yyy&R1=0&R2=1&para=00&0MKKey=123456" http://a.b.c.d > /dev/null 2>&1
sleep
done
上一篇:Hystrix自恢复模式


下一篇:学习一下 SpringCloud (四)-- 服务降级、熔断 Hystrix、Sentinel