Re: FindBin cannot chdir back problem
- From: "bxb7668" <brian@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 06:14:54 -0700
"Gunnar Hjalmarsson" <noreply@xxxxxxxxx> wrote in message
news:3jj5rnFqbdkuU1@xxxxxxxxxxxxxxxxx
> bri@xxxxxxxxxxx wrote:
>> We have Perl 5.6.1 installed. We're getting the message:
>>
>> Cannot chdir back to
>> M:/MyComp_R16/Manufacturing/ToolsData/VisualStudioNet: No such file
>> or
>> directory
>
> <snip>
>
>> This script worked when we had Visual Studio 6 installed but now
>> fails
>> since we installed Visual Studio.NET. It is called from within
>> Visual
>> Studio.
>>
>> Any suggestions where to start looking to figure out how to fix this?
>
> The code?
>
Here is a code snippet from my script that calls FindBin:
#!/bin/perl
use strict;
use File::Basename;
use Getopt::Long;
use Cwd;
use Cwd 'abs_path';
require 5.6.1;
# ------------------------------------------------
$ENV{PATH} = my $UT_MYPATH = my $UT_CCPATH = "";
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
# In the original script, the following line is line 101
use FindBin qw($Bin);
BEGIN { # Untaint $Bin
if ( "$Bin" =~ /^(.*)$/ ) { $Bin = $1; } else { die "Tainted
Bin\n";};
}
use lib ("${Bin}/perllib","${Bin}/../perllib");
require 'bvb_include_common.pl';
bvb_set_PATH($Bin, $BVBDEBUG); # Set PATH to min. system libs
exit(0);
Brian Bygland
.
- Follow-Ups:
- Re: FindBin cannot chdir back problem
- From: Sisyphus
- Re: FindBin cannot chdir back problem
- References:
- FindBin cannot chdir back problem
- From: bri
- Re: FindBin cannot chdir back problem
- From: Gunnar Hjalmarsson
- FindBin cannot chdir back problem
- Prev by Date: Thanks
- Next by Date: Re: FindBin cannot chdir back problem
- Previous by thread: Re: FindBin cannot chdir back problem
- Next by thread: Re: FindBin cannot chdir back problem
- Index(es):
Relevant Pages
|
|