aspose file tools
The moose likes Java in General and the fly likes FTP'ing files onto a UNIX machine using JAVA 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 » Java in General
Reply Bookmark "FTP Watch "FTP New topic
Author

FTP'ing files onto a UNIX machine using JAVA

Ravi Pydi
Greenhorn

Joined: Sep 01, 2002
Posts: 25
Hi,
I am trying to FTP a text file from a AIX box to a UNIX box using JAVA. I already have a code which can FTP files into a Windows environment. I am using the same code to log into the Solaris box. I am able to log into the system by using the doCommand() method (see code below) but the same code isn't working in the ftp session. I am getting "Get option: single" as a response when I execute any command after logging in. But the same doCommand() method after logging in works fine on a windows box.

The method that is trying to execute the commands on the UNIX server is as follows:

public String doCommand(String commandString)
throws IOException
{
outStream.writeBytes(commandString+"\r\n");
String response = getResponse();
System.out.println("The response from the Mailbox server is : " + response);
return response;
}

Any suggestions on this is greatly appreciated.

Thanks
Ravi Pydi
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: FTP'ing files onto a UNIX machine using JAVA
 
Similar Threads
SFTP from java
What do i need to do java.net.connectexception connection refused connect
FTP'ing files into a UNIX machine using JAVA
ANT FTP task: Software caused connection abort: connect
invoking a browser from application