2015-12-22 13:23:18 -07:00
|
|
|
#!/bin/bash
|
2016-01-18 10:12:53 -07:00
|
|
|
if [ $# -gt 0 ]; then
|
2016-01-25 18:52:58 -07:00
|
|
|
echo exec ${@} | vpe_api_test | sed 's/vat# //g'
|
2016-01-18 10:12:53 -07:00
|
|
|
else
|
|
|
|
echo -n "vpp# "
|
|
|
|
while read CMD; do
|
2016-01-25 18:52:58 -07:00
|
|
|
if [ "x$CMD" == "xexit" ]; then
|
|
|
|
exit
|
|
|
|
elif [ "x$CMD" != "x" ]; then
|
|
|
|
echo exec $CMD | vpe_api_test | sed 's/vat# //g'
|
|
|
|
fi
|
|
|
|
echo -n "vpp# "
|
2016-01-18 10:12:53 -07:00
|
|
|
done
|
|
|
|
fi
|