Re: telnet doubt..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I want to do something like this using telnet. In my program, I will
> connect a socket to the telnet server on another machine. I will send some
> command(for example, "pwd") to the telnet server as it is, without adding
> any telnet command codes(just the string "pwd"). Will telnet accept such
> commands and respond to them? Or is this possible by doing some extensions
> to this trivial program like - by negotiating some options with the
> telnet server before sending the commands? The problem is, I don't want to
> write the whole telnet client again :)

The easiest solution would probably be using the expect tool
(see http://expect.nist.gov/), and use the normal telnet client.

regards
  Patrick
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux