From c5a2737a1f11f5520c5cdcd288cd3e337521946a Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 18 Sep 2014 04:01:57 +1000 Subject: [PATCH] sql - format initid.sh output so it can be sent to ckpmsg --- sql/initid.sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/sql/initid.sh b/sql/initid.sh index c2699ecb..31c119d9 100755 --- a/sql/initid.sh +++ b/sql/initid.sh @@ -2,25 +2,10 @@ # fldsep="`echo -e '\x09'`" # -dsp() -{ - cut -c4- -# echo -} -process() -{ - # <256 - len=${#1} - oct="`printf '%03o' "$len"`" - code="`printf "\\\\$oct"`" - all="$code$zero$zero$zero$1" - printf "$code\\0\\0\\000$1" | nc -U -w 1 /opt/ckdb/listener | dsp -} -# addid() { msg="newid.$1.idname=$1${fldsep}idvalue=$2" - process "$msg" + echo "$msg" } # # Default to yyyymmddXXXXXX