File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Connecting to a remote host and using commands such as 'ls' and 'cd'. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Connecting to a remote host and using commands such as Watch "Connecting to a remote host and using commands such as New topic
Author

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

Darryl McCool
Greenhorn

Joined: Jan 03, 2001
Posts: 8
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

Joined: Jun 13, 2000
Posts: 3340
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


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Connecting to a remote host and using commands such as 'ls' and 'cd'.
 
Similar Threads
jsp
how to change cursor position in Swing?
where to put my jdbc driver to mysql?
Stranger super()
will subclass gets serialized?