X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fadvanced%2Fbatch.sh;fp=example%2Fdiameter%2Flauncher%2Fresources%2Fadvanced%2Fbatch.sh;h=0000000000000000000000000000000000000000;hb=7bf36f6cec41494071f07699184d8230ccd8cb41;hp=969924321110c4d63f3a7ac3061f1e2498d161f2;hpb=08bdffbddf4bc0938eadec51af88de18734beda3;p=anna.git diff --git a/example/diameter/launcher/resources/advanced/batch.sh b/example/diameter/launcher/resources/advanced/batch.sh deleted file mode 100755 index 9699243..0000000 --- a/example/diameter/launcher/resources/advanced/batch.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -> curl_log.txt -TRACE="--trace-ascii curl_log.txt" -SERVER=`cat .httpServer` - -use () { - - echo "Use: $0 [time between operations: 0 second by default]" - echo - echo " Batch launcher script" - echo " ---------------------" - echo - echo " Test file must contain a operations with this syntax: |||..." - echo " Three operations: code, decode and sendxml:" - echo - echo " code|| i.e.: code|1.xml|2.hex" - echo " decode|| i.e.: decode|2.hex|1.xml-bis" - echo " sendxml| i.e.: sendxml|1.xml" - echo - echo " Test file example:" - echo - echo " $0 1xml-23.txt" - echo - echo " where 1xml-23.txt contains:" - echo " Encode 1.xml to 2.hex|code|1.xml|2.hex" - echo " Decode 2.hex to 3.xml (we will diff 1.xml and 3.xml)|decode|2.hex|3.xml" - echo - echo - echo " Test file could contain any number of operations and could include comments (will be ignored)." - echo - exit -} - -echo -echo -[[ "$1" = "" ]] && use -LAPSE=${2:-0} -echo -echo "Test '$1' is going to be launched:" -echo -cat $1 -echo -echo "Pulse ENTER para lanzar, CTRL+C para abortar..." -read dummy - -while read -r line -do - comment=$(echo $line | grep "^#") - ok= - [[ "$comment" = "" ]] && { [[ "$line" != "" ]] && ok=s ; } - if test "$ok" = "s" - then - echo "Launching $(echo $line | cut -d'|' -f1) ..." - sleep $LAPSE - operation=$(echo $line | cut -d'|' -f2-) - curl -m 1 --data "$operation" $TRACE ${SERVER} - fi - -done < $1 -