Updates to util functions
This commit is contained in:
parent
455bcaa977
commit
80fc74b2b8
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue