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 22.214.171.124 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.