正式版
#!/bin/bash
while true;do
GAME_ID=64c27e5a00ec40848e5d28bc67413eee
TEAM_ID=a0d1bb3d37c740f8ad67315721010d7d
UUID=`cat log1.serverapp_logs |grep Refund|awk '{print $7}'` | awk 'END {print}'
echo "Sent Refund request for ID: $UUID"
REQ_RESP=`curl -i -H "Accept: application/json" -X POST -d '{"game":"'"$GAME_ID"'", "team":"'"$TEAM_ID"'", "order":"'"$UUID"'"}' https://stats.aws.dev-null.link/proc/refund`
echo "Request response: "
echo $REQ_RESP
sleep 2;
done
#!/bin/bash
while true;do
GAME_ID=64c27e5a00ec40848e5d28bc67413eee
TEAM_ID=a0d1bb3d37c740f8ad67315721010d7d
UUID=`cat log1.serverapp_logs |grep Refund|awk '{print $7}'` | awk 'END {print}'
echo "Sent Refund request for ID: $UUID"
REQ_RESP=`curl -i -H "Accept: application/json" -X POST -d '{"game":"'"$GAME_ID"'", "team":"'"$TEAM_ID"'", "order":"'"$UUID"'"}' https://stats.aws.dev-null.link/proc/refund`
echo "Request response: "
echo $REQ_RESP
sleep 2;
done
次版:
#!/bin/bash
echo "Enter your Game ID: "
read GAME_ID
echo "Enter your Team ID: "
read TEAM_ID
echo "Enter the Request ID: "
read UUID
echo "Sent Refund request for ID: $UUID"
REQ_RESP=`curl -i -H "Accept: application/json" -X POST -d '{"game":"'"$GAME_ID"'", "team":"'"$TEAM_ID"'", "order":"'"$UUID"'"}' https://stats.aws.dev-null.link/proc/refund`
echo "Request response: "
echo $REQ_RESP
#!/bin/bash
echo "Enter your Game ID: "
read GAME_ID
echo "Enter your Team ID: "
read TEAM_ID
echo "Enter the Request ID: "
read UUID
echo "Sent Refund request for ID: $UUID"
REQ_RESP=`curl -i -H "Accept: application/json" -X POST -d '{"game":"'"$GAME_ID"'", "team":"'"$TEAM_ID"'", "order":"'"$UUID"'"}' https://stats.aws.dev-null.link/proc/refund`
echo "Request response: "
echo $REQ_RESP