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