Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Reading from file- not change atime

by Eliya (Vicar)
on Dec 10, 2013 at 16:44 UTC ( [id://1066463]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    utime($atime, $mtime, $file) or die "utime: $!";
    
    show_times($file, "after atime restored");
    
  2. or download this
    $ touch somefile && sleep 2 && ./fix_accesstime.pl somefile
    atime=1386693000, mtime=1386693000, ctime=1386693000 - initially
    atime=1386693002, mtime=1386693000, ctime=1386693000 - after read
    atime=1386693000, mtime=1386693000, ctime=1386693002 - after atime res
    +tored
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-26 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found