Reading Perl script command output using paramiko from remote ssh

242 views Asked by At

I can't read a perl script command out from shh. I can reading things like ifconfig, pwd but I installed an application written in perl but cant read out from its command from another server when using remote ssh. Tried a lot of steps

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

ssh.connect(hostname=sys_ip,
            port=22,
            username=sys_username,
            password=sys_password)

cmd = "cd /; export TERM=${TERM:-dumb}; commandforperlscript"

I get no output and no errors.

0

There are 0 answers