in reply to Re: Net::SSH::Any does not return output for few specific commands
in thread Net::SSH::Any does not return output for few specific commands

Thanks Salva for quick reply. I added error check but no break. The code is connecting to the host it did not die and the $ssh->error is printing 0.

  • Comment on Re^2: Net::SSH::Any does not return output for few specific commands

Replies are listed 'Best First'.
Re^3: Net::SSH::Any does not return output for few specific commands
by magic_007 (Initiate) on Apr 02, 2013 at 17:37 UTC
    My problem got solved. Instead of "who am i" I used "whoami" and i got the output.

    I even tried "who -am -u" but it did not work but i could not find out why capture doesn't return output for those commands.

    Thanks anyways.