[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Q1+2: Opening/closing/flocking



>
>> $thePath = 'utopia.knoware.nl//usr/home/bsfa/www/';
>
>That is not a file path. 

As far as the fact that it ends with a '/' is concerned, in the next 
actual line of code in the script, the actual path is constructed like 
this:

$thePath = 'utopia.knoware.nl//usr/home/bsfa/www/';
    # General path, useful for constructing paths to one or more
    # files (or folders). 
$theFile = '>>'."$thePath".'log.txt';
    # Here we compose the full path to this particular file

> Perhaps you are confusing shortcut URLs
>with file paths.  Also make sure you are using the correct naming
>convention for the server's operating system.

Sorry, the one with //user/home etc was a desperate variation when things 
didn't work. The path 'utopia.knoware.nl/users/bsfa/www/' is the one that 
should work (I think). 
That path worked when I defined it as a base tag. From that, I'd say that 
it is the proper path. But it doesn't seem work (no server errors), 
judging by the fact that no log.txt file turns up when I open the www 
folder.

Apart from the above ould you or anyone else give a bit more attention to
- What use is closing a file as soon as possible after opening, if only 
flock-ing gives a measure of protection?
- Unix has three groups for which permissions may be set. Is a file 
created by a CGI ruled by a fourth group?

Thanks for your help.

Bert
BTW, I'm on digest, so if you'd CC your replies to the list to me, I'd be 
grateful

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org