develooper Front page | perl.perl5.porters | Postings from April 2003

[PATCH] [perl #18589] Add NFS warning, clarify touch example

Thread Next
From:
Casey West
Date:
April 24, 2003 12:41
Subject:
[PATCH] [perl #18589] Add NFS warning, clarify touch example
Message ID:
20030424194514.GY34510@geeknest.com
The following patch addresses two issues with this ticket: NFS time
sync warning, and clarity on the first touch example.  The third issue
has already been addressed (how to simulate touch on any system).

  Casey West

-- 
"So we went to Atari and said, 'Hey, we've got this amazing thing,
even built with some of your parts, and what do you think about
funding us? Or we'll give it to you. We just want to do it. Pay our
salary, we'll come work for you.' And they said, 'No.' So then we went
to Hewlett-Packard, and they said, 'Hey, we don't need you. You
haven't got through college yet.'"
 -- Apple Computer Inc. founder Steve Jobs on attempts to get Atari
    and H-P interested in his and Steve Wozniak's personal computer.


--- perl-current.orig/pod/perlfunc.pod	Mon Apr 14 16:47:02 2003
+++ perl-current/pod/perlfunc.pod	Thu Apr 24 13:23:32 2003
@@ -6133,12 +6133,16 @@
 files.  The first two elements of the list must be the NUMERICAL access
 and modification times, in that order.  Returns the number of files
 successfully changed.  The inode change time of each file is set
-to the current time.  This code has the same effect as the C<touch>
-command if the files already exist:
+to the current time.  For example, this code has the same effect as the
+Unix C<touch> command when the files I<already exist>.
 
     #!/usr/bin/perl
     $now = time;
     utime $now, $now, @ARGV;
+
+B<Note:>  Under NFS C<touch> uses the time of the NFS server, not
+the time of the local machine.  If there is a time syncronization
+problem, the NFS server and local machine will have different times.
 
 If the first two elements of the list are C<undef>, then the utime(2)
 function in the C library will be called with a null second argument.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About