X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fadvanced%2FanswerXml.sh;h=7a98cad6507fbfc8c582415887576f5eeddc44c2;hp=ce4aa408daa91f154ef091b635bc17d503a9311f;hb=c881c12ed7e116f1d43760a0d9873f860c10a357;hpb=af14877201a9856708ec43086a229777d9cb3da7 diff --git a/example/diameter/launcher/deployments/advanced/answerXml.sh b/example/diameter/launcher/deployments/advanced/answerXml.sh index ce4aa40..7a98cad 100755 --- a/example/diameter/launcher/deployments/advanced/answerXml.sh +++ b/example/diameter/launcher/deployments/advanced/answerXml.sh @@ -1,13 +1,9 @@ #!/bin/bash -> curl_log.txt -TRACE="--trace-ascii curl_log.txt" -SERVER=`cat .httpServer` - echo echo -echo "Use: $0 [xml_file] [2e]" +echo "Use: $0 [json file for REST API] [2e]" echo -echo "Programm 'xml_file' answer to the diameter client or to the server (entity) when" +echo "Program answer to the diameter client or to the server (entity) when" echo "'2e' parameter is provided. If missing xml file, current programmed answers will" echo "be shown: '$0' (answers to client), '$0 2e' (answers to server)." echo @@ -16,7 +12,7 @@ then if test "$1" = "2e" then operation="answerxml2e" - else + else [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; } operation="answerxml|$1" [[ "$2" = "2e" ]] && operation="answerxml2e|$1" @@ -25,5 +21,4 @@ else operation="answerxml" fi echo -curl -m 1 --data "$operation" $TRACE ${SERVER} - +./operation.sh "$operation"