X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fadvanced%2FloadXml.sh;fp=example%2Fdiameter%2Flauncher%2Fresources%2Fadvanced%2FloadXml.sh;h=26749d569cd7916aca2946b864df800771e47ec0;hb=2ddc4abd3627f5f5b4df32de199f364aa3844491;hp=0000000000000000000000000000000000000000;hpb=b5a7dd9cd05eb652f63e10a77dc26af49b9a6ff2;p=anna.git diff --git a/example/diameter/launcher/resources/advanced/loadXml.sh b/example/diameter/launcher/resources/advanced/loadXml.sh new file mode 100755 index 0000000..26749d5 --- /dev/null +++ b/example/diameter/launcher/resources/advanced/loadXml.sh @@ -0,0 +1,23 @@ +#!/bin/bash +> curl_log.txt +TRACE="--trace-ascii curl_log.txt" +SERVER=`cat .httpServer` + +use () { + + echo "Use: $0 " + echo + echo "Load xml file and show on stdout again." + echo "It is useful to test xml loader and xml viewer, but also for show aliases and," + echo "if '-ignoreFlags' commandline option is missing, for flag coherence checking." + echo + exit +} + +echo +[[ "$1" = "" ]] && use +[[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; } +echo +operation="loadxml|$1" +curl -m 1 --data "$operation" $TRACE ${SERVER} +