in reply to Login to a remote solaris machine as superuser through perl
put is a subroutine which will send the input to login subroutine.
when you execute a command using cmd subroutine this will just execute the command and send the result
to assigned variable or whatever.
so you have to use the login subroutine to do this stuff.
Because these informations are clearly specified in
Net::Telnet
Also please have a look in the following link also
Remote connect
|
|---|