Add shell function to make manual handover triger a little easier

This commit is contained in:
Keith Whyte 2023-02-22 02:40:56 +01:00
parent d3636dd4fd
commit 8d5987a078

View file

@ -219,6 +219,16 @@ op () {
ps awxf | grep [o]smo\-
}
ho () {
if [ $# -lt 5 ] ; then
echo "BTS TRX TS SS BTS"
return
fi
expect -c 'set bts '$1'; set trx '$2'; set ts '$3'; set ss '$4'; set dst '$5'; spawn telnet localhost 4242; expect ">"; send "enable\r"; expect "#";
send "bts $bts trx $trx timeslot $ts sub-slot $ss handover $dst\r"; expect "#";
send "exit\r"; expect "#";';
}
lock () {
if [ "$1" == "" ] ; then
echo "BTS #?"