Date time stamp

Rick Stevens rstevens at vitalstream.com
Thu Jun 15 01:26:49 UTC 2006


On Wed, 2006-06-14 at 17:56 -0700, Bret Stern wrote:
> I have a cron which zips some data then
> sends it to an offsite ftp site.
> 
> The date time stamp when issuing a ls command
> shows a date one day ahead of the date the file
> was created.
> 
> Both servers have the correct day.
> 
> Impossible you say!!
> 
> Any thoughts on how the date time stamp is
> issued to a file arriving via ftp to fedora 5?

Assuming you're complaining about the file's date on the FTP server,
it depends on when the cron runs.  Remember the date in "ls -l" is the
"last modified" date, NOT the "creation date".  If the day rolls over
(e.g. the FTP send occurs at midnight), the last modified date will be
a day later.

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-     Make it idiot proof and someone will make a better idiot.      -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list