Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2012-02-21T16:40:14Z by Mintuser
SouravBC
SouravBC
1 Post
ACCEPTED ANSWER

Pinned topic Telnet argument passing

‏2012-01-13T09:03:04Z |
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>"
throgh telnet?

Thanks
Updated on 2012-02-21T16:40:14Z at 2012-02-21T16:40:14Z by Mintuser
  • romeo_ninov
    romeo_ninov
    3 Posts
    ACCEPTED ANSWER

    Re: Telnet argument passing

    ‏2012-01-14T08:19:58Z  in response to SouravBC
    You can use ssh for this purpose. For example
    ssh user@host "command"
    • arran.gregor
      arran.gregor
      1 Post
      ACCEPTED ANSWER

      Re: Telnet argument passing

      ‏2012-01-25T19:16:34Z  in response to romeo_ninov
      Secure 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.

      Arran
      _____________
      Chicago cleaning service [/URL] | Chicago commercial cleaning [/URL]
  • Mintuser
    Mintuser
    1 Post
    ACCEPTED ANSWER

    Re: Telnet argument passing

    ‏2012-02-21T16:40:14Z  in response to SouravBC
    You 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.