Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 contemplating the Monastery: (5)
As of 2024-09-11 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (13 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.