#!/bin/sh

# ecexe -rif does not declare its outputs, and rdbg --sut-stdio needs it!
# fortunately, lus2lic -interface can do the job!

# Its hacky, but simple enough...


ec=$1
node=$2
#set -x verbose #echo on
#set -e # stop at the first error!

lus2lic -interface $ec -n $node | grep -v Warning | grep -v "no memory" || echo "ignoring errors..." 
ecexe  -r $ec  2>&1 
