azure tts batch with curl

You have to upload your data using curls -d argument. Avoid to construct ad data structure object as a string variable, it’s pita. You will definitely cry abt character encoding. Instead build a well prepared file and use the -d @$FILE parameter. Transfer your data between your scripts base64 encoded. Remove these characters: ” < […]

TCPKILL | Scripting mode – batch mode

TKILL_ID_SEM=”/tmp/tcpkill.$(date +%s).$RANDOM” test -f $TKILL_ID_SEM && rm -f $TKILL_ID_SEM tcpkill -9 host $DEAD_HOST > $TKILL_ID_SEM 2>/dev/null & KILL_PID=$! CNT=0; CNTLIMIT=60 while [ $CNT -lt $CNTLIMIT ]; do # echo $TKILL_ID_SEM sleep 1 test -f $TKILL_ID_SEM && rm -f $TKILL_ID_SEM && kill -9 $KILL_PID && exit CNT = $[ $CNT + 1 ] # echo $CNT […]