Revision: 0f4d1b584fb0
Author:   Jean Deruelle <[email protected]>
Date:     Tue Aug 28 14:13:53 2012
Log: trying to fix the script according to http://stackoverflow.com/questions/818255/in-the-bash-shell-what-is-21

http://code.google.com/p/sipservlets/source/detail?r=0f4d1b584fb0

Modified:
/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh

=======================================
--- /sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Tue Aug 7 04:18:25 2012 +++ /sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Tue Aug 28 14:13:53 2012
@@ -20,97 +20,97 @@
            proxy)
                        rm ./proxy/*.log
                        echo "Distributed example used is proxy";
- echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2&>1 & + echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2>&1 & sipp $MSS_IP:5080 -s receiver-failover -sf proxy/location-service-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error -nd
                    ;;
            proxy-early)
                        rm ./proxy/*.log
                        echo "Distributed example used is proxy early dialog 
failover";
- echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-failover -sf proxy/location-service-sender-early.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error -nd
                    ;;
            proxy-remote-send-bye)
                        rm ./proxy/*.log
                        echo "Distributed example used is proxy remote send 
bye";
- echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver-sends-bye.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf proxy/location-service-receiver-sends-bye.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-failover -sf proxy/location-service-sender-receives-bye.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
            proxy-indialog-info)
                        rm ./proxy/*.log
                        echo "Distributed example used is proxy indialog info";
- echo""| sipp $MSS_IP:5080 -sf proxy/location-service-indialog-info-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf proxy/location-service-indialog-info-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-failover -sf proxy/location-service-indialog-info-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                        ;;
            proxy-termination)
                        rm ./proxy/*.log
                        echo "Distributed example used is proxy termination";
- echo""| sipp $MSS_IP:5080 -sf proxy/location-service-termination-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf proxy/location-service-termination-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-failover -sf proxy/location-service-termination-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                        ;;
            custom-b2bua)
                        rm ./b2bua/*.log
                    echo "Distributed example used is custom b2bua";
- echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver.xml -trace_err -trace_msg -nd -i $SIPP_IP -p 5090 >sipp-uas-log-$1.txt 2&>1 & + echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver.xml -trace_err -trace_msg -nd -i $SIPP_IP -p 5090 >sipp-uas-log-$1.txt 2>&1 & sipp $MSS_IP:5080 -s receiver -sf b2bua/custom-call-forwarding-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error -nd
                    ;;
            custom-b2bua-early)
                        rm ./b2bua/*.log
echo "Distributed example used is custom b2bua early dialog failover"; - echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver-early.xml -i $SIPP_IP -nd -p 5090
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver-early.xml -i $SIPP_IP -nd -p 5090
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver -sf b2bua/custom-call-forwarding-sender-early.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error -nd
                    ;;
            custom-b2bua-udp-tcp)
                        rm ./b2bua/*.log
                    echo "Distributed example used is custom b2bua udp tcp";
- echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver.xml -nd -i $SIPP_IP -p 5090 -t t1
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/custom-call-forwarding-receiver.xml -nd -i $SIPP_IP -p 5090 -t t1
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-tcp -sf b2bua/custom-call-forwarding-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error -nd
                    ;;
            custom-b2bua-tcp-tcp)
                        rm ./b2bua/*.log
                    echo "Distributed example used is custom b2bua tcp tcp";
- echo""| sipp $MSS_IP:5080 -nd -sf b2bua/custom-call-forwarding-receiver.xml -i $SIPP_IP -p 5090 -t t1
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -nd -sf b2bua/custom-call-forwarding-receiver.xml -i $SIPP_IP -p 5090 -t t1
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-tcp -nd -sf b2bua/custom-call-forwarding-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -t t1 -timeout_error
                    ;;
            b2bua)
                        rm ./b2bua/*.log
                    echo "Distributed example used is b2bua";
- echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender.xml -trace_err -i $SIPP_IP -p 5050 -nd -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
            b2bua-info)
                        rm ./b2bua/*.log
                    echo "Distributed example used is b2bua info";
- echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-info.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-info.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender-info.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
            b2bua-early)
                        rm ./b2bua/*.log
echo "Distributed example used is b2bua early dialog failover"; - echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender-early.xml -trace_err -nd -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
            b2bua-early-linked)
                        rm ./b2bua/*.log
echo "Distributed example used is b2bua early dialog failover with linked requests"; - echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-linked -sf b2bua/call-forwarding-sender-early.xml -nd -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
            b2bua-early-fwd-ack)
                        rm ./b2bua/*.log
echo "Distributed example used is b2bua early dialog failover"; - echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-early.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver-fwd-ack -sf b2bua/call-forwarding-sender-early.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT $SIPP_OPTIONS -timeout_error
                    ;;
            b2bua-remote-send-bye)
                        rm ./b2bua/*.log
                    echo "Distributed example used is b2bua-remote-send-bye";
- echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-sends-bye.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2&>1 &
+ echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-sends-bye.xml -i $SIPP_IP -p 5090 -nd
sipp-uas-log-$1.txt 2>&1 &
sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender-receives-bye.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
            b2bua-remote-send-bye-no-ring)
                        rm ./b2bua/*.log
echo "Distributed example used is b2bua-remote-send-bye-no-ring"; - echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-sends-bye-no-ring.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2&>1 & + echo""| sipp $MSS_IP:5080 -sf b2bua/call-forwarding-receiver-sends-bye-no-ring.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2>&1 & sipp $MSS_IP:5080 -s receiver -sf b2bua/call-forwarding-sender-receives-bye.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
                uac)
@@ -214,7 +214,7 @@
            proxy-b2bua-ar)
                        rm ./ar/*.log
                        echo "Distributed example used is proxy-b2bua-ar";
- echo""| sipp $MSS_IP:5060 -sf ar/proxy-b2bua-ar-receiver.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2&>1 & + echo""| sipp $MSS_IP:5060 -sf ar/proxy-b2bua-ar-receiver.xml -i $SIPP_IP -p 5090 -nd >sipp-uas-log-$1.txt 2>&1 & sipp $MSS_IP:5060 -s receiver-failover -sf ar/proxy-b2bua-ar-sender.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
     esac

Reply via email to