Thanks for pointing me in a better direction. I used this ...

 
> $now = time;
> utime $now, $now, @files; # sets access and modification time

 ... and expanded it to this ...

$now = time;

print $now;

@meters = ("test0612d.shtml");

foreach $file (@meters) {
  
        utime $now, $now, $file or print "Couldn't
touch $file: $!\n";

}

At least now I'm getting an error message displayed in the web 
browser. The error is: "Not Owner".

I made a symbolic link to the file I want to touch and then 
proceeded to try to change ownership to the symbolic 
link. I can only assume that the perl script I'm executing 
has the owner "Nobody" when it is running. When I tried 
to: 
chown Nobody test0612d.shtml
 ... I got the same error "Not Owner"

when I:

ls -l test0612d.shtml

ls -l work0513f.cgi

it says that I am the owner, so I should be able to 
change the owner to Nobody, or at least change 
the owner to "root". But every time I attempt it 
I get the error "Not Owner".

Thanks for any help ...
~



Reply via email to