Connecting to a remote host and using commands such as 'ls' and 'cd'.
Joined: Jan 03, 2001
How can I write a program that connects to a remote machine, and allows me to use typical commands such as 'ls', 'cd <dir>', etc. and recieve a response from the remote host? Note that I do not want to use the ftp commands 'LIST' and 'CWD'. McCool [This message has been edited by Darryl McCool (edited January 11, 2001).] [This message has been edited by Darryl McCool (edited January 11, 2001).]
Joined: Jun 13, 2000
Unless you want to write your own server to handle your own protocol, You have to use a server and protocol available. Ftp can provide the functionality as well as Telnet, and probably a few others. For any protocol that you wish to implement, spend time reading and understanding the RFC's for it. They can be found in a lot of locations, one index is here Hope this helps