Old time stamp being updated for new files


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Old time stamp being updated for new files
# 1  
Old 10-13-2010
Question Old time stamp being updated for new files

Hello Friends

I am facing a weird problem Smilie, we receive thousands of files in my system on a daily basis, access time stamp on some of the files are being updated as old time stamp like 1968-01-19, Could some one help me what could be causing this? so that i can narrow down the problem

Thanks much for all your help Smilie
# 2  
Old 10-13-2010
What OS/version are you on?
How are the files arriving?
Are they extracted from archives (like tar or tgz)?
Do you NFS mount the filesystem?

Are the create and last modified times OK?
# 3  
Old 10-14-2010
Please find the answers to above questions:

GNU/Linux #1 SMP
Files are coming from external systems
They are not extracted from Archives
File system is NFS mounted

Have a look at these stats which is happening only for few files

Access: 1969-12-31 17:00:10.000000000 -0700
Modify: 2010-10-13 04:04:32.000000000 -0700
Change: 2010-10-13 04:04:41.000000000 -0700

Please let me know if this helps. Many Thanks
# 4  
Old 10-14-2010
The base date for unix dates is 1 Jan 1970.
The date in your example is 7 hours before this date and this matches your 7-hour timezone adjustment.

I think that the value is actually zero (i.e. not accessed yet).
# 5  
Old 10-14-2010
OK, thats good information to have, thank you,

What process defines this access time value which could be taking this as Zero? Could it be because OS?

Thanks much

---------- Post updated at 08:17 AM ---------- Previous update was at 07:48 AM ----------

Friends,

to add to the above note, i did find few entries with access time stamp as 1978, so its not always ZERO, and assigning the random old time stamp, which process assigns this access time on the file would be helpful to narrow down the problem

Thanks in anticipationSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Time Stamp Range On Log Files

I have created this script #!/bin/sh FILES=/data/log/access_*.log for f in $FILES do echo "Processing $f file" cat $f | awk '{print $1}' | sort | uniq -c | sort -n | tail done It produces this output Processing /data/log/access_abc.log file 114 1.1.1.1 167 2.2.2.2 ... (38 Replies)
Discussion started by: sharingsunshine
38 Replies

2. Shell Programming and Scripting

Files with date and time stamp

Hi Folks, Need a clarification on files with date and time stamp. Here is my requirement. There is a file created everyday with the following format "file.txt.YYYYMMDDHHMMSS". Now i need to check for this file and if it is available then i need to do some task to the file. I tried... (6 Replies)
Discussion started by: jayadanabalan
6 Replies

3. Shell Programming and Scripting

Select files by time stamp

Hi, I need help to read file in a directory on basis of time stamp. e.g. If file access in last 2 minutes it should not be copy to remote directory. Below is my script. +++++++++++++++++++++++++ #!/bin/ksh DATE=`date +"%Y-%m-%d_%H%M"` SEPARATER=" " exec < out_interfaces.cfg... (1 Reply)
Discussion started by: qamar.alam
1 Replies

4. Emergency UNIX and Linux Support

Is there any way to set the files modified date and stamp to last modifies time?

Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time. Please advice here.Thanks in advance.:b: (7 Replies)
Discussion started by: saluja.deepak
7 Replies

5. Solaris

doubt reg time stamp in files.

I copied a file from one host to another using sftp. But after copying the time stamp is not updating . Even though I checked the permission, it looks good. I copied the same file to some temporary location, there it updating the time stamp. Anyone have any idea on this (6 Replies)
Discussion started by: rogerben
6 Replies

6. Shell Programming and Scripting

awk to print files in a dir between the given time stamp

hi all, i want to print all the files in a directory. between a time stamp like $8>=07:00 and $8<=09:00. please give me commands not only in awk by any other commands also. Thanks. (3 Replies)
Discussion started by: Arunprasad
3 Replies

7. UNIX for Dummies Questions & Answers

grep content of files sorted by time stamp

egrep Date: *.html > out.htm I would like to grep the match as sorted by time stamp of the html files. how do I do that? (1 Reply)
Discussion started by: zer0
1 Replies

8. UNIX for Dummies Questions & Answers

How to search for files based on the time stamp

Hi All, I know the timestamp of a file. Now i would like to list all the files in the with the same time stamp in the same file. Any help would be appreciated. Thanks. sunny (1 Reply)
Discussion started by: sunny_03
1 Replies

9. UNIX for Dummies Questions & Answers

Need to delete the files based on the time stamp of the file

Hi Everyone, I want to delete some files in a path based on the time stamp of the file that is i want to delete the file once in a month. Can any one help me on this? Thanks in advance (2 Replies)
Discussion started by: samudha
2 Replies

10. Shell Programming and Scripting

script for listing files of today's time stamp

Hi, I need to write a script,which behaves like this, Given the folder name, it should list the files with today's timestamp. Please direct me on this. Thanks. (2 Replies)
Discussion started by: kid123
2 Replies
Login or Register to Ask a Question