On Mon, Jun 04, 2001 at 04:33:13PM -0500, Nichole Bialczyk wrote:
> the bossman has requested the following:
> 
> he wants my logfiles written to our server in the /tmp directory. my 
> scripts are in the cgi-bin of our afs account. even though the files are 
> set with 777 permissions, the outside world can not write to these files. 

If your AFS is anything like the AFS I know, the Unix permissions
aren't what you need to set.

[snip]
> #if the user is one of our machines, don't login
> foreach my $address(@my_addr) {
>    if ($ENV{'REMOTE_HOST'} eq $address) {
>       &redir;
>       exit;
>    }
> }

How about trying:

  (&redir, exit) if grep { $ENV{REMOTE_HOST} eq $_ } @my_addr;

or maybe:

  my %addr;
  @addr{@my_addr} = ();
  (&redir, exit) if exists $addr{ $ENV{REMOTE_HOST} };

[snip]

-- 
Salad: it's what's for dinner, for what's for dinner.

Reply via email to