Hello, I need to create a shell script to telnet to a remote server. Perform some action and then exit from that server. I am trying with a dummy script: #!/bin/bash telnet 126.96.36.199 8101<dummy.txt exit The dummy.txt contains the password. The script is not working with the port number. I am getting the following error: 8101: Bad file descriptor Please advice.
All 4 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.