django - getting extra 0 using getstatusoutput command python -


live_calls = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show calls")  current_live_agent = commands.getstatus('/usr/local/freeswitch/bin/fs_cli -x "show bridged_calls"  |tail -2 | grep -o "[0-9]*"')    print(current_live_agent) 

i using above commands getting out (0 '0') want first 0 only. can me. in advance


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -