Code:
port2_result=os.popen('ipmitool raw 0x3a 0x11 0x2a 0x6f 0x00 8').read()
this is the expression i've written in a script after calling a procedure to establish SSH connection to a remote machine. the same thing works for local machine but after ssh, it's giving the variable as '[ ]'. the ssh procedure is as follows:
Code:
def SSH (user,host,PROMPT) :
    os.system('rm -f /root/.ssh/known_hosts')
    SSHd = 'ssh '+user+'@'+host
...