Add first work package for REST API implementation
[anna.git] / example / diameter / launcher / deployments / advanced / sendXml.sh
1 #!/bin/bash
2
3 use () {
4
5    echo "Use: $0 <xml_file> [2c]"
6    echo
7    echo "Sends 'xml_file' to the diameter server or to the client when '2c' parameter is provided."
8    echo
9    exit
10 }
11
12 echo
13 [[ "$1" = "" ]] && use
14 [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; }
15 echo
16 operation="sendxml|$1"
17 [[ "$2" = "2c" ]] && operation="sendxml2c|$1"
18
19 ./operation.sh "$operation"
20