PDA

View Full Version : issueCommand method of Ftp class


shashi2309
10-20-2008, 10:17 AM
Hi,

I wanted to know that what does the issueCommmand method of Ftp class do?

I tried moving a file on a remote host by doing
Ftp ftpClient = new Ftp("host","user","password");
ftpClient.connect();
String resp = ftpClient.issueCommandCheck("mv test /test2");

But I am getting the following exception.

com.jscape.inet.ftp.FtpException: 500 'MV /var/msf/transfers/manager/test /var/msf/': command not understood.

Please suggest
Thanks
Shashi

vglass
10-27-2008, 08:47 PM
the issueCommand method may only be used for commands understood by the FTP server software and is not intended for generic OS shell commands. Please consult your FTP server software for a list of the commands that are supported.