Added slsReceiverScript and xterms

This commit is contained in:
2015-12-15 16:31:18 +01:00
parent c73d9f4103
commit ff7a2d5185
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/bin/bash
STARTPORT=$1
AMOUNT=$2
if [ "$2" == "" ]; then
echo Syntax: $0 STARTPORT AMOUNT
echo Example: $0 1991 8 gives you 8 receivers starting with port 1991
fi
declare -A ARG
count=0
for i in `seq $STARTPORT $((STARTPORT+$((AMOUNT-1))))`; do
if [ "$((count%2))" == "0" ]; then
ARG[$count]="slsReceiver --rx_tcpport $i"
else
ARG[$count]="slsReceiver --rx_tcpport $i --mode 1"
fi
count=$((count+1))
done
xterms -k "${ARG[@]}"