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

/etc/init.d/drcomd:

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

 

/usr/local/sbin/drcomd:

1 #!/bin/sh
2 
3 while true; do
4     ping www.baidu.com -c1 > /dev/null 2>&1 || curl -d "DDDDD=xxx&upass=yyy&R1=0&R2=1&para=00&0MKKey=123456" http://a.b.c.d > /dev/null 2>&1
5     sleep 5
6 done

 

posted @ 2015-06-10 15:02  esxgx  阅读(1107)  评论(0)    收藏  举报