Updates to util functions

This commit is contained in:
Wile E. Coyote 2019-03-08 16:33:12 +00:00
parent 455bcaa977
commit 80fc74b2b8

View file

@ -47,12 +47,16 @@ tl() {
if [ "$1" == "" ] ; then if [ "$1" == "" ] ; then
tail -f /var/log/rccn/*log tail -f /var/log/rccn/*log
else else
tail -f /var/log/rccn/$1.log less -RS +F /var/log/rccn/$1.log
fi fi
} }
r() {
sudo -i bash -c "cd /var/rhizomatica/rccn; exec bash --login"
}
rk_ext() { rk_ext() {
IMSI=$(curl -X GET http://10.23.0.3:8098/buckets/hlr/index/msisdn_bin/$1 2>/dev/null| sed -e 's/[^0-9]//g') IMSI=$(curl -X GET http://10.23.0.3:8098/buckets/hlr/index/msisdn_bin/$1 2>/dev/null| python -c "import sys, json; print json.load(sys.stdin)['keys'][0]")
echo $IMSI echo $IMSI
rk_imsi $IMSI rk_imsi $IMSI
} }