Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Stamp Refresh

Status
Not open for further replies.

magicandmight

IS-IT--Management
Aug 27, 2004
77
US
Anyone know a script that will refresh the date stamps on a linux server? That is easy to install.
 
And I am talking about the date on when the file was uploaded. I know I can accomplish this with FTP but it get difficult to do that when there are multiple programmers.
 
be specific, what are you trying to do?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Trying to make the date that each file was put on my server automatically refresh to the current date, instead of me having to transport the files to my server everyday.
 
Maybe this is what you are looking for:

Code:
my $t = time;
chdir('/path/to/your/dir') or die "$!";
for(<*>){
   utime $t,$t,$_;
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top