Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FTP put options

 
Neelima Garimella
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic