Reputation: 93
I am trying to execute a perl script which using "Net::SSH::Expect" module.
the problem that am facing is that , when i execute the script through Cygwin, it works like a charm .. but the same script when executed over windows CMD , it fails giving the below error ->
SSHAuthenticationError Login timed out. The input stream currently has the contents bellow: Pseudo-terminal will not be allocated because stdin is not a terminal.
at /usr/local/share/perl5/site_perl/5.26/Expect.pm line 904.
could you please suggest what have i missed?
Upvotes: 2
Views: 130
Reputation: 5962
... Pseudo-terminal will not be allocated because stdin is not a terminal. ... Expect.pm
I guess the answer to this error message can be found from the documentation:
Expect itself doesn't have real system dependencies, but the underlying
IO::Tty
needs pseudoterminals. ...See
IO::Tty
for a list of verified systems.
and IO::Tty
Windows is now supported, but ONLY under the Cygwin environment, ...
Upvotes: 2