Refund.sh 345 B

12345678910111213
  1. #!/bin/bash
  2. while :
  3. do
  4. refund=`tail -n 300 /root/server.log|grep Refund|awk '{print $6}'|sort|uniq`
  5. for id in $refund
  6. do
  7. curl -i -H "Accept:application/json" -X POST -d "{\"user_id\":855,\"game_id\":177,\"refund_id\":\"${id}\"}" http://onlyellow.cstor.cn:18888/launch_refund
  8. done
  9. sleep 6
  10. done
  11. #########################
  12. # Version 2