From ed7ebc4995e0cb9be92c4f5ae5ac51362af15943 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Sun, 13 Jul 2014 12:41:07 +0200 Subject: [PATCH] ksh to bash --- example/diameter/launcher/DEPLOY.sh | 4 ++-- example/diameter/launcher/resources/answerXml.sh | 2 +- example/diameter/launcher/resources/batch.sh | 2 +- example/diameter/launcher/resources/burst.sh | 2 +- example/diameter/launcher/resources/clientSocketManager.sh | 2 +- example/diameter/launcher/resources/code.sh | 2 +- example/diameter/launcher/resources/collect.sh | 2 +- example/diameter/launcher/resources/data.sh | 2 +- example/diameter/launcher/resources/decode.sh | 2 +- example/diameter/launcher/resources/diameterServerSessions.sh | 2 +- example/diameter/launcher/resources/help.sh | 2 +- example/diameter/launcher/resources/loadXml.sh | 2 +- example/diameter/launcher/resources/pre-start.sh | 2 +- example/diameter/launcher/resources/sendXml.sh | 2 +- example/diameter/launcher/resources/sms.sh | 2 +- example/diameter/stackManagement/self_ruling_setups.sh | 2 +- source/diameter/stack/setups/dependence.sh | 2 +- source/diameter/stack/setups/flags.sh | 3 +-- 18 files changed, 19 insertions(+), 20 deletions(-) diff --git a/example/diameter/launcher/DEPLOY.sh b/example/diameter/launcher/DEPLOY.sh index 4a29575..c6d58f1 100755 --- a/example/diameter/launcher/DEPLOY.sh +++ b/example/diameter/launcher/DEPLOY.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash # Functions & variables SETUPS_DIR=../../../source/diameter/stack/setups @@ -18,7 +18,7 @@ _exit () { createRunScript () { - echo "#!/bin/ksh" > run.sh + echo "#!/bin/bash" > run.sh echo "EXE=\`cat .exe 2>/dev/null\`" >> run.sh echo "STARTED=\`ps -fea | grep \"\$EXE\" | grep -v grep\`" >> run.sh echo "[ \"\$EXE\" != \"\" -a \"\$STARTED\" != \"\" ] && { echo \"Already started!\"; echo \"\$STARTED\" ; exit ; }" >> run.sh diff --git a/example/diameter/launcher/resources/answerXml.sh b/example/diameter/launcher/resources/answerXml.sh index 451882c..ce4aa40 100755 --- a/example/diameter/launcher/resources/answerXml.sh +++ b/example/diameter/launcher/resources/answerXml.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/batch.sh b/example/diameter/launcher/resources/batch.sh index 051de1d..9699243 100755 --- a/example/diameter/launcher/resources/batch.sh +++ b/example/diameter/launcher/resources/batch.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/burst.sh b/example/diameter/launcher/resources/burst.sh index a3b5341..b05b6e0 100755 --- a/example/diameter/launcher/resources/burst.sh +++ b/example/diameter/launcher/resources/burst.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/clientSocketManager.sh b/example/diameter/launcher/resources/clientSocketManager.sh index 225464f..4c801b2 100755 --- a/example/diameter/launcher/resources/clientSocketManager.sh +++ b/example/diameter/launcher/resources/clientSocketManager.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/code.sh b/example/diameter/launcher/resources/code.sh index a202f3a..9ca200c 100755 --- a/example/diameter/launcher/resources/code.sh +++ b/example/diameter/launcher/resources/code.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/collect.sh b/example/diameter/launcher/resources/collect.sh index 9f556fa..5fb95ec 100755 --- a/example/diameter/launcher/resources/collect.sh +++ b/example/diameter/launcher/resources/collect.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/data.sh b/example/diameter/launcher/resources/data.sh index f253b76..09949ad 100755 --- a/example/diameter/launcher/resources/data.sh +++ b/example/diameter/launcher/resources/data.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash # Generates DATA burst sequence for provided order number (1: first, 2: second, etc.) # We will generate a simple scenario with initial, two updates and termination, that is to say: four messages: diff --git a/example/diameter/launcher/resources/decode.sh b/example/diameter/launcher/resources/decode.sh index da9681c..3924f73 100755 --- a/example/diameter/launcher/resources/decode.sh +++ b/example/diameter/launcher/resources/decode.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/diameterServerSessions.sh b/example/diameter/launcher/resources/diameterServerSessions.sh index 340b14b..dc72c87 100755 --- a/example/diameter/launcher/resources/diameterServerSessions.sh +++ b/example/diameter/launcher/resources/diameterServerSessions.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/help.sh b/example/diameter/launcher/resources/help.sh index 42519ec..ebeafff 100755 --- a/example/diameter/launcher/resources/help.sh +++ b/example/diameter/launcher/resources/help.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/loadXml.sh b/example/diameter/launcher/resources/loadXml.sh index c589249..26749d5 100755 --- a/example/diameter/launcher/resources/loadXml.sh +++ b/example/diameter/launcher/resources/loadXml.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/pre-start.sh b/example/diameter/launcher/resources/pre-start.sh index 24c22b9..e009d71 100755 --- a/example/diameter/launcher/resources/pre-start.sh +++ b/example/diameter/launcher/resources/pre-start.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash # Remove logs: rm *.log* *.csv 2>/dev/null diff --git a/example/diameter/launcher/resources/sendXml.sh b/example/diameter/launcher/resources/sendXml.sh index d9d58e2..d9aaa33 100755 --- a/example/diameter/launcher/resources/sendXml.sh +++ b/example/diameter/launcher/resources/sendXml.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash > curl_log.txt TRACE="--trace-ascii curl_log.txt" SERVER=`cat .httpServer` diff --git a/example/diameter/launcher/resources/sms.sh b/example/diameter/launcher/resources/sms.sh index c77b398..d0b1e63 100755 --- a/example/diameter/launcher/resources/sms.sh +++ b/example/diameter/launcher/resources/sms.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash # Generates SMS burst sequence for provided order number (1: first, 2: second, etc.) SEQN=$1 diff --git a/example/diameter/stackManagement/self_ruling_setups.sh b/example/diameter/stackManagement/self_ruling_setups.sh index fc7a427..8b8e3fe 100755 --- a/example/diameter/stackManagement/self_ruling_setups.sh +++ b/example/diameter/stackManagement/self_ruling_setups.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash #@eramos echo echo "This script builds autonomous diameter stack ditionaries for current stack commands" diff --git a/source/diameter/stack/setups/dependence.sh b/source/diameter/stack/setups/dependence.sh index 5dbbbfc..d9b53d5 100755 --- a/source/diameter/stack/setups/dependence.sh +++ b/source/diameter/stack/setups/dependence.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash quit() { echo diff --git a/source/diameter/stack/setups/flags.sh b/source/diameter/stack/setups/flags.sh index 6002306..e35fac1 100755 --- a/source/diameter/stack/setups/flags.sh +++ b/source/diameter/stack/setups/flags.sh @@ -1,5 +1,4 @@ -#!/bin/ksh - +#!/bin/bash _exit() { echo -- 2.20.1