Friday, May 20, 2011

why not?

python -c "import telnetlib,time;tn = telnetlib.Telnet('127.0.0.1', 10031);tn.write('ppolicyFactory.modules[\'stats\'][0].STAT_DATA\r\n');time.sleep(1);output = [line for line in tn.read_until('}')];print ''.join(output).split()[4][0:-1]"

No comments:

Post a Comment