How do I access the create date from Windows after the file has been FTP'd to UNIX ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How do I access the create date from Windows after the file has been FTP'd to UNIX ?
# 1  
Old 10-10-2008
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  
Old 10-10-2008
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  
Old 10-10-2008
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...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP XLSX file from UNIX to windows

Hi, Could someone suggest me how to FTP a xlsx file from unix to windows. I can able to transfer xls file from unix to windows successfully. But if i transfer the xlsx file im not able to open, it through error like "The file format or file extension is not valid" Thanks Rathna (4 Replies)
Discussion started by: Rathnakumar
4 Replies

2. Shell Programming and Scripting

ftp an excel file from windows to unix

Hi all.. Please help me on below requirement. I have an excel file ftped from windows to unix location. I am not able to open the file. if i am opening it in vi editor, i am getting only junk characters. I have to make the excel file as .csv file and read the data to put some business... (3 Replies)
Discussion started by: gani_85
3 Replies

3. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

4. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

5. Shell Programming and Scripting

ftp the latest file from unix to windows

Hi, I have a ftp script to ftp files from unix to windows. Now i need to pull the latest file from unix to windows. It is not working. ftp -nvi $SERVER > ${FILE_DIR}/NavigationftpLog << EOD user $USER $PWD lcd $FILE_DIR echo "the local directory is $FILE_DIR" cd $Remote_PATH echo... (2 Replies)
Discussion started by: ammu
2 Replies

6. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

7. UNIX for Dummies Questions & Answers

create folder in windows from unix while FTP

Hi, I would like to know if it's possible to create a folder in a Windows Server while running a ftp script in Unix. The idea is to create a script that searches for different files in folders, and when the file is found, take the path of that file and create it to Windows and ftp the file to... (0 Replies)
Discussion started by: Metalero de Oz
0 Replies

8. Shell Programming and Scripting

Shell to FTP file from Windows to unix

I need your help for a FTP Job to be schedule to copy files from windows to Unix. in a set of time interval. My requirement is as follows. 1.Script should check whether file is available in the windows folder , if available then do FTP to unix server , and then move... (3 Replies)
Discussion started by: sandeep.kamble
3 Replies

9. Shell Programming and Scripting

How send a file from UNIX to Windows with FTP

Hi I'm new working in UNIX, So, I want to know How I can send a file from UNIX to Windows server with FTP. This is my script. ftp -i -n -v <<** open 199.99.99.99 user user1 password1 lcd C01_07_06 /* source/ cd //199.98.98.98/group1/reports /*destination*/ put file1.sh ... (1 Reply)
Discussion started by: edzela
1 Replies
Login or Register to Ask a Question