• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connecting to a remote host and using commands such as 'ls' and 'cd'.

 
Darryl McCool
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!