Hi I was trying to get telnet to work on a device and every time I try to get it to run a script I get a no login prompt error. See that's the problem on the device I'm trying to get it to check. It doesn't require a login. I can ssh into the device and do the script with out having to login. I was wondering if there is a way to tell it to skip the login part. Any solutions are welcome
Ad Widget
Collapse
Telnet Issue
Collapse
X
-
Tags: None
-
According to the documentation, telnet is waiting for the login prompt to appear. this is how the program is written. If you want to change it, edit the source codes. -
You can use something like expect(https://linux.die.net/man/1/expect) for automating tasks that require an interactive login. Be warned, fiddling with expect scripts is not always fun and getting them to work may require some time... ;-)Comment
Comment