转账功能
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin
step=5 #间隔的秒数,不能大于10
for (( i = 0; i < 60; i=(i+step) )); do
curl http://xxx/index/wpay/auto_transfer3
curl http://xxx/index/wpay/auto_transfer2
curl http://xxx/index/wpay/auto_transfer1
sleep $step
done
exit 0
监听收款
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin
step=3 #间隔的秒数,不能大于10
for (( i = 0; i < 60; i=(i+step) )); do
curl http://xxx/index/wpay/index3
curl http://xxx/index/wpay/index2
curl http://xxx/index/wp