SUMMARY: Q: How to keep ftped file's time/date same as FTP server ?

From: Yen-Wen Chen (yen@n0sun4.ccl.itri.org.tw)
Date: Mon Aug 29 1994 - 02:30:16 CDT


Hi, Sun Managers:

original question:
> I have a stupid question about ftp. When we ftp a file from ftp server,
> how to keep the file's date/time same as to FTP server?

I received three replies as follows:

1. by Danny, dan@engr.LaTech.edu
    The ftp client ncftp available in the comp.sources.unix (I think it is
    in .unix) archives does this automatically.
    << I prefer this one, and it works >>

2. by poul, poul@nilu.no
    using "touch" to do it. ==> read the manual as you have both /usr/bin/touch
    and /usr/5bin/touch.

3. by pluto!perryh@qiclab.scn.rain.com
    I know of no way to do this with ftp alone, but you can preserve the
    timestamp by archiving the file(s) with tar or cpio, then transferring
    the archive, and finally extracting it.
    << if you has write permission in FTP servers >>

Thanks dan@engr.LaTech.edu
        poul@nilu.no
        pluto!perryh@qiclab.scn.rain.com

---------------------------------------------------------------
Yen-Wen Chen | internet : yen@n0sun4.ccl.itri.org.tw
ITRI/CCL | Tel : 886-35-917562
System Engineer | Fax : 886-35-820081
---------------------------------------------------------------
Address : N200, Bldg. 14, 195 Sec 4, Chung Hsing Rd., Chutung,
          Hsinchu, Taiwan 310, R.O.C.
---------------------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:08 CDT