aspose file tools*
The moose likes Linux / UNIX and the fly likes FTP put options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "FTP put options" Watch "FTP put options" New topic
Author

FTP put options

Neelima Garimella
Ranch Hand

Joined: Oct 03, 2000
Posts: 37
Hi all,
Does anyone know about how to copy files using FTP and retain the copied file's timetsamp (creation time).
This should be similar to using "cp -p" command in UNIX.
All responses are greatly appreciated.
Thanks,
Neelima.
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
In the true spirit of linux, why don't you look at an open source version of cp to find out how it's done? Then you could get the source to ftp and ftpd and make your own versions.
Do let us know how you do
Neelima Garimella
Ranch Hand

Joined: Oct 03, 2000
Posts: 37
Thanks for the response.
I used "rcp" command in Unix with -p option to retain the timestamp. Its pretty cool and ofcourse it needs a .rhosts file on the destination server.
I like the idea of writing our own versions of FTP is great. But, my environment on both the servers are UNIX (solaris to HP). I wish it was Linux.
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
Before I get lambasted by penguin-lovers everywhere, I must admit that I love a free OS like Linux with open source, although I find that HPUX and Solaris are good, solid OSes that in many ways are easier to integrate. So if I was using HPUX/Solaris (and the company was paying for them) I wouldn't hanker after Linux instead.
But that's just my opinion. I suppose I like the fact that the vendor fixes the bugs before I get to use the OS. I'm not knocking Linux, I just know that it comes with some warts.
 
 
subject: FTP put options