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 derfloh 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
Joined
Aug 27, 2004
Messages
77
Location
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.

Similar threads

Replies
3
Views
204
M
  • Locked
  • Question Question
Replies
4
Views
253
member 472187
M
  • Locked
  • Question Question
Replies
5
Views
263

Part and Inventory Search

Sponsor

Back
Top