utime

Paul_Melson@keykertusa.com Paul_Melson@keykertusa.com
Mon, 1 Oct 2001 07:57:14 -0400


>Does anyone know how to use the utime function or a similar method (in
>Perl) to set the mtime and atime of a symbolic link?  Whenever I try to
>change the time of a symbolic link, it changes the time of the actual
>file that the link is linked to.

What about using a hard link instead of a symlink?  The atime and mtime of
the link would have to be the same as the file, but at least they could be
modified.  The only way I can think of to manage the time of your symlinks
would be if you wanted to set them to current time and simply removed and
recreated them.  Seems like there's got to be a better way, though.

PaulM