I want to run a telnet command in this format
>telnet $host $port $command
But its showing error
Is there any way I can directly pass a command like "echo <abc>"
This topic has been locked.
3 replies Latest Post - 2012-02-21T16:40:14Z by Mintuser
Pinned topic Telnet argument passing
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-02-21T16:40:14Z at 2012-02-21T16:40:14Z by Mintuser
romeo_ninov 110000Q22M3 Posts
arran.gregor 27000519DF1 PostACCEPTED ANSWER
Re: Telnet argument passing2012-01-25T19:16:34Z in response to romeo_ninovSecure Shell, commonly known as SSH, and Telnet are two network protocols that have been used widely at one point in time or another. They are both used to connect to remote servers in order to facilitate some sort of communications. The primary difference, which also led to one superseding the other, is in security. SSH offers security mechanisms that protect the users against anyone with malicious intent while Telnet has no security measures whatsoever.
Chicago cleaning service [/URL] | Chicago commercial cleaning [/URL]
Mintuser 2700053SDK1 PostACCEPTED ANSWER
Re: Telnet argument passing2012-02-21T16:40:14Z in response to SouravBCYou cannot pass Telnet commands as arguments, the protocol doesn't allow for it (AFAIK). Why would it, as telnet is supposed to be a way to interact, not process commands in "batch mode".
It would help if you'd state why you're trying to do a batch telnet...you know, solve the problem instead of work on the symptom.