Ad Widget

Collapse

Telnet Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • volfan37135
    Junior Member
    • Apr 2021
    • 1

    #1

    Telnet Issue

    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
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    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.

    Comment

    • bsjaekel
      Junior Member
      • Apr 2021
      • 12

      #3
      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

      Working...