The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create a Tar of multiple Files in Unix and FTP the tar to Windows. marconi UNIX for Advanced & Expert Users 1 08-25-2008 04:40 PM
create folder in windows from unix while FTP Metalero de Oz UNIX for Dummies Questions & Answers 0 05-14-2008 02:22 PM
need to create a file with its name having system date hamsa Shell Programming and Scripting 11 10-18-2006 05:48 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 12:39 PM
Access Windows NT files through Unix. mkarekar Shell Programming and Scripting 4 05-11-2006 10:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-10-2008
gavman99 gavman99 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
How do I access the create date from Windows after the file has been FTP'd to UNIX ?

I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation.

At the end of each day, these log files are FTP'd to a directory on a UNIX box.

When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp that the file was originally created back on the windows workstation.

Is it possible to access this original "file created timestamp" from the UNIX box ?

Many thanks in advance.

Last edited by gavman99; 10-10-2008 at 10:54 AM.. Reason: Typo
  #2 (permalink)  
Old 10-10-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,807
UNIX does not have nor does it preserve a file creation timestamp.
There are
ctime (looks like creation time but is not) is the time of the last inode modification.
inodes are file metadata areas in the filesystem
mtime - last time the file was modified
atime - last time the file was accessed.

If it is imperative to keep the windows creation time, change the destination filename
in FTP to reflect the time.
  #3 (permalink)  
Old 10-10-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,585
solutions:

append to the log the information
dir file.log>>file.log ( I know you will then have to do a little editing on it in unix...)

archive the file (zip?) to newfile then ftp to unix box
when you restore, it should hopefully give you the original timestamp...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0