File update date


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File update date
# 1  
Old 05-31-2005
File update date

I am facing a peculiar problem with file update dates. In my network, if i telnet to machine A and check the files in dir test of machine A, the dates for the last update shown are true dates and upto date. If the same folder is checked through some other machine by sharing the test folder and mounting it on other machine, then the date shown for the files is previous day. It is not just with date, the time is also incorrect. Can somebody help me understand why it is so and how can i solve it.
thanks
amne
# 2  
Old 05-31-2005
It might be possible that files are cached on the remote machine and latest copy of those files are not available on that system. Just check the cache options.
# 3  
Old 05-31-2005
first check that the dates on all the servers in question are the same ... it is likely that there is a big difference in the time ... if they are in sync, check for local copies of the files with the funky dates on the remote box after you verify that you're actually looking at the same filesystem that you exported from the test box ...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to determine Date,TotalFile,total size of file based on date

I have file listed like below -rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz -rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz -rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz -rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz -rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz I... (5 Replies)
Discussion started by: krish2014
5 Replies

2. UNIX for Dummies Questions & Answers

Replace with last date update

Dear Masters, I have file input 20140901|Cross Nation|Asia 20140908|Cross Region|Europe 20140905|Cross Nation|Europe I want to replace column 1 with the last date update, so my output should be like 20140908|Cross Nation|Asia 20140908|Cross Region|Europe 20140908|Cross Nation|Europe ... (7 Replies)
Discussion started by: radius
7 Replies

3. UNIX for Dummies Questions & Answers

How to update a date dynamically using sed?

hi guys, i need to update a date in my config file via shell file M using this statement but it is not working ...any suggestions cat $CONFIG_FILE | sed -e 's/START_RUN_DATE=$START_RUN_DATE/START_RUN_DATE=$NEW_END_DATE/g' > srap_config_new.txt (1 Reply)
Discussion started by: ravidwivedi2288
1 Replies

4. UNIX for Dummies Questions & Answers

How to pick the latest file with date as one among the file name.( not exactly present date.)?

i have files like 1)20131112_abc_01.csv and 2)20131113_abc_01.csv and 3)20131113_abc_02.csv when i try to fetch the file in the next day. it shud pick the third file.. plz help me.. and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
Discussion started by: applepie
2 Replies

5. UNIX for Dummies Questions & Answers

Does 'grep' update a file's access date/time?

I've got a job that finds and removes trace files based upon an access time of more than seven days (I've also tried a modify date). find TABC* -atime +7 -exec rm + find TABC* -mtime +7 -exec rm + Whether I use -atime or -mtime, the process seems to work sporadically. Sometimes it removes... (6 Replies)
Discussion started by: Scottie1954
6 Replies

6. Fedora

Unable to Update Date

Hi everyone, Thanks for your help with this. I'm running an AWS EC2 instance (ami-2bc05345) and the time has been drifting. I have a different server using the same instance where the time is fine. NTP seems to be installed and be running (I uninstalled it and reinstalled it via Yum, just to... (4 Replies)
Discussion started by: AaronLS2
4 Replies

7. UNIX for Dummies Questions & Answers

Delete a row from a file if one column containing a date is greater than the current system date

Hello gurus, I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4: NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies

8. Shell Programming and Scripting

how to update date part with new increment date time

hi experts, my requirement is like this i need to develop a shell script to update date part with new incremental date time in file some 'X' which is kept at some server location incrementing every two hours.as i am new to this scripting i need support from u people,thanx in advance (1 Reply)
Discussion started by: amanmro
1 Replies

9. UNIX for Advanced & Expert Users

update files and preserve date

I have a bunch of historical files that need to be modified, as the file source announced there is an error in them which should be corrected. I am planning to use sed to do the mass update, but I would like to know if there is a way to preserve files last modified date/time, so later ls -ltr... (3 Replies)
Discussion started by: migurus
3 Replies
Login or Register to Ask a Question