D
Dan
Dear All,
Not sure if this is a perl or mac issue, or a bit of both...
Here's a tricky problem in some simple Perl code...
$store = '/Volumes/Store Server/store/';
opendir(STORE, $store) or die $!;
@FILES=readdir STORE;
closedir(STORE);
print $#FILES;
This code is executed on a machine running Apache under OS X Tiger
(client) that is connected with AFP to a server running OS X.3 Server.
In my web browser i open the script, and it dies with the following
error...
Permission denied at /Library/WebServer/CGI-Executables/yada/yada.pl
line 54.
When I refresh, the error appears again. Refresh another time and the
script works, providing the number of files in the directory.
Hit refresh again and the error comes back! The next few refreshes
produce randomly either the error message or the correct answer.
Nothing is changing... nobody else is using the server, the script
isn't being changed. What on earth is going on? Is this a permissions
hole in OSX? I've tried opening the permissions of of /store/ to 777,
but it makes no difference.
Any advise my guru betters?
Thanks,
Dan
Not sure if this is a perl or mac issue, or a bit of both...
Here's a tricky problem in some simple Perl code...
$store = '/Volumes/Store Server/store/';
opendir(STORE, $store) or die $!;
@FILES=readdir STORE;
closedir(STORE);
print $#FILES;
This code is executed on a machine running Apache under OS X Tiger
(client) that is connected with AFP to a server running OS X.3 Server.
In my web browser i open the script, and it dies with the following
error...
Permission denied at /Library/WebServer/CGI-Executables/yada/yada.pl
line 54.
When I refresh, the error appears again. Refresh another time and the
script works, providing the number of files in the directory.
Hit refresh again and the error comes back! The next few refreshes
produce randomly either the error message or the correct answer.
Nothing is changing... nobody else is using the server, the script
isn't being changed. What on earth is going on? Is this a permissions
hole in OSX? I've tried opening the permissions of of /store/ to 777,
but it makes no difference.
Any advise my guru betters?
Thanks,
Dan