http://www.perlmonks.org?node_id=992456


in reply to Re: Net::SSH::Expect command returns command itself
in thread Net::SSH::Expect command returns command itself

why you don't copy the error message from your command here?