Re: Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm

2010-08-19 Thread Jim Gibson
whether my code is > causing this exception or the underlying MIME::Lite::TT::HTML or > MIME::Lite. > > Insecure $ENV{PATH} while running with -T switch at > /usr/local/share/perl5/MIME/Lite.pm line 2689., referer: > http://192.168.0.88/cgi-bin/dashboard.cgi > (Program sn

Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm

2010-08-19 Thread Mimi Cafe
::Lite. Insecure $ENV{PATH} while running with -T switch at /usr/local/share/perl5/MIME/Lite.pm line 2689., referer: http://192.168.0.88/cgi-bin/dashboard.cgi In my mobile I have this sub for sending mail and it has always worked until I switched on the -T. sub sendmail { my (%params

Re: Insecure $ENV{PATH} message

2009-12-03 Thread Peter Scott
code hasn't been changed: >>> >>> open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; >>> >>> The error is: "Insecure $ENV{PATH} while running with -T switch at" >>> pointing at the line abov

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
-PDeskJet940C/ or die "can't fork lpr: $!"; >> >> The error is: "Insecure $ENV{PATH} while running with -T switch at" >> pointing at the line above. From articles on the net I understand it >> has something to do with '|-', though I'm no

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Shawn H Corey
Huub van Niekerk wrote: > Hi, > > I started getting this error after upgrading from Fedora 11 to 12. The > line of code hasn't been changed: > > open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; > > The error is

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
> "O" == Owen writes: >>> there is no %PATH variable in perl. if you read the post about >>> clearing >>> the PATH in the ENVIRONMENT, you would just set that value in the >>> %ENV >>> hash. >>> >>> uri >> >> If you mean like this, it doesn't work. >> >> $ENV{"lpr"}

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
> "HvN" == Huub van Niekerk writes: >> there is no %PATH variable in perl. if you read the post about clearing >> the PATH in the ENVIRONMENT, you would just set that value in the %ENV >> hash. >> >> uri HvN> If you mean like this, it doesn't work. HvN> $ENV{"lpr"} = "/usr/bi

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Owen
>> there is no %PATH variable in perl. if you read the post about >> clearing >> the PATH in the ENVIRONMENT, you would just set that value in the >> %ENV >> hash. >> >> uri > > If you mean like this, it doesn't work. > > $ENV{"lpr"} = "/usr/bin/lpr"; > > Nor do > > $ENV{"/usr/bin/lpr"} = "lpr"; >

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
> there is no %PATH variable in perl. if you read the post about clearing > the PATH in the ENVIRONMENT, you would just set that value in the %ENV > hash. > > uri If you mean like this, it doesn't work. $ENV{"lpr"} = "/usr/bin/lpr"; Nor do $ENV{"/usr/bin/lpr"} = "lpr"; $ENV{"PATH"} = "/usr/bin

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Uri Guttman
> "HvN" == Huub van Niekerk writes: >> Try specifying the full path for lpr >> >> %whereis lpr >> lpr: /usr/bin/lpr.cups /usr/bin/lpr /usr/share/man/man1/lpr.1.gz >> >> So on my box, /usr/bin/lpr >> >> If you look at that article I sent you previously, it gives some >> ex

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
> Try specifying the full path for lpr > > %whereis lpr > lpr: /usr/bin/lpr.cups /usr/bin/lpr /usr/share/man/man1/lpr.1.gz > > So on my box, /usr/bin/lpr > > If you look at that article I sent you previously, it gives some > explanation for why you need to reset $ENV{"PATH"} (from memory). > O

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
On Sun, 29 Nov 2009 23:39:58 +1000, Huub van Niekerk wrote: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; $ENV{"PATH"} = ""; at the start of the script, it doesn't seem to complain any more. Hope that helps, Thank you, though I'm not out of problems yet. The m

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Huub van Niekerk
>> >> open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; >> > > $ENV{"PATH"} = ""; > > at the start of the script, it doesn't seem to complain any more. > Hope that helps, > Thank you, though I'm not out of problems yet. The message I'm getting now is: Can't exec "lpr": No

Re: Insecure $ENV{PATH} message

2009-11-29 Thread Dave Tang
On Sun, 29 Nov 2009 16:30:56 +1000, Huub van Niekerk wrote: Hi, Hello, I started getting this error after upgrading from Fedora 11 to 12. The line of code hasn't been changed: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; The

Insecure $ENV{PATH} message

2009-11-28 Thread Huub van Niekerk
Hi, I started getting this error after upgrading from Fedora 11 to 12. The line of code hasn't been changed: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; The error is: "Insecure $ENV{PATH} while running with -T switch at" poin

Re: Insecure $ENV{PATH}

2003-08-30 Thread Bob Showalter
PANNEER SELVAN wrote: > Hi, > > I am running a perl program with -T -W switches.. while > executing system function , i am getting an error like > > Insecure $ENV{PATH} while running with -T switch at try.pl > > Any idea of solving this problem? Yo

Insecure $ENV{PATH}

2003-08-30 Thread PANNEER SELVAN
Hi, I am running a perl program with -T -W switches.. while executing system function , i am getting an error like Insecure $ENV{PATH} while running with -T switch at try.pl Any idea of solving this problem? - D.P.S