X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fadvanced%2FclientSocketManager.sh;h=14c29778721908c59cd7dfe2371194205c8c7e6b;hp=4c801b29d6a089dd6ab0d2b535702e26ad980b13;hb=c881c12ed7e116f1d43760a0d9873f860c10a357;hpb=af14877201a9856708ec43086a229777d9cb3da7 diff --git a/example/diameter/launcher/deployments/advanced/clientSocketManager.sh b/example/diameter/launcher/deployments/advanced/clientSocketManager.sh index 4c801b2..14c2977 100755 --- a/example/diameter/launcher/deployments/advanced/clientSocketManager.sh +++ b/example/diameter/launcher/deployments/advanced/clientSocketManager.sh @@ -1,7 +1,4 @@ #!/bin/bash -> curl_log.txt -TRACE="--trace-ascii curl_log.txt" -SERVER=`cat .httpServer` ENTITY=`cat .entity 2>/dev/null` # If missing following, 1 is assigned (ENTITY_SS_1 is ENTITY_SS - 1) ENTITY_SS=`cat .entityServerSessions 2>/dev/null` @@ -24,19 +21,19 @@ states () { echo echo "Select option to switch (0 = quit):" echo - option=1 + option=1 for i in `echo $ENTITY | sed 's/,/ /g'` do for j in `seq 0 $ENTITY_SS_1` do TARGET="${i}|${j}" - RES=$(curl -m 1 --data "shown|$TARGET" ${SERVER} 2>&1 | tail -1 | grep "true$") + RES=$(./operation.sh "shown|$TARGET" | tail -1 | grep "true$") res=hidden [[ "$RES" != "" ]] && res=shown echo "${option}. $TARGET ($res)" action=show [[ "$RES" != "" ]] && action=hide - echo "curl -m 1 --data \"$action|$TARGET\" ${SERVER}" > .switch_${option} + echo "./operation \"$action|$TARGET\"" > .switch_${option} chmod a+x .switch_${option} option=$((option+1)) done @@ -52,7 +49,7 @@ then states read option [[ "$option" = "0" ]] && break - .switch_${option} + .switch_${option} done echo echo "Exiting" @@ -66,5 +63,5 @@ echo echo operation="$1|$TARGET" [[ "$TARGET" = "" ]] && operation="$1" -curl -m 1 --data "$operation" $TRACE ${SERVER} +./operation.sh "$operation"