Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Ftp from a to b sitting at C ??
Originally posted by Ulf Dittmer:
Machines A and B need to have FTP servers running; Java is not required, and the operating system makes no difference. The client on machine C can be implemented using the Jakarta Commons Net library, which includes an FTP client.
I don't understand what you are asking here - your program is running on C, but the file should be transferred from A to B? Either ftp the file from A to C, and from there to B, or you can open a shell on A and initiate a direct ftp to B (or vice-versa). The Net library also has rexec/rcmd/rlogin facilities for that.
[ July 29, 2005: Message edited by: Ulf Dittmer ]
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Originally posted by Ulf Dittmer:
I think it's strange that they would let you open a shell, but not transfer a file through one of your computer, but OK.
I don't have sample code; I've only used Commons Net for ftp, never for
remote login. I'd suggest reading up on the Unix commands that are mirrored by those facilities, and try it out in your environment.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Tell me can i upload a file from server A , using my JAVA program on server C and uploading the same on server B ? Is it possible through the commons net library?
Originally posted by Ulf Dittmer:
Commons net implements client-side ftp. With it an app can connect anywhere where there's an ftp server, and upload and download files.
Your wording is not quite clear: you want to upload a file *FROM* C *TO* A, and then upload the same file *FROM* C *TO* B? Or do you want to download *FROM* A to C, and then upload that file *TO* B? But either way, it's possible as long as you have ftp servers on A and B.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.