diff --git a/modules/rhizo_base/templates/rccn-functions.sh.erb b/modules/rhizo_base/templates/rccn-functions.sh.erb index 2367c04..0479c92 100644 --- a/modules/rhizo_base/templates/rccn-functions.sh.erb +++ b/modules/rhizo_base/templates/rccn-functions.sh.erb @@ -47,12 +47,16 @@ tl() { if [ "$1" == "" ] ; then tail -f /var/log/rccn/*log else - tail -f /var/log/rccn/$1.log + less -RS +F /var/log/rccn/$1.log fi } +r() { + sudo -i bash -c "cd /var/rhizomatica/rccn; exec bash --login" +} + 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 rk_imsi $IMSI }