Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon

Links

XODOX
Impressum

#1: CGI perl with -T

Posted on 2007-08-24 02:48:32 by George

Help...
I am trying to use sendmail in a CGI script. When I use the OPEN command
(open sMail, "| /usr/lib/sendmail -oi -t -odq";)
I get the error (Insecure $ENV{PATH} while running with -T switch)
I don't want to disable the -T switch but I need to be able to call
sendmail.

Any Ideas?

Thanks

Report this message

#2: Re: CGI perl with -T

Posted on 2007-08-24 02:58:14 by Gunnar Hjalmarsson

George wrote:
> I am trying to use sendmail in a CGI script. When I use the OPEN command
> (open sMail, "| /usr/lib/sendmail -oi -t -odq";)
> I get the error (Insecure $ENV{PATH} while running with -T switch)
> I don't want to disable the -T switch but I need to be able to call
> sendmail.

Set $ENV{PATH} explicitly.

$ENV{PATH} = '';

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Report this message

#3: Re: CGI perl with -T

Posted on 2007-08-24 03:15:14 by George

Gunnar Hjalmarsson wrote:
> George wrote:
>> I am trying to use sendmail in a CGI script. When I use the OPEN
>> command (open sMail, "| /usr/lib/sendmail -oi -t -odq";)
>> I get the error (Insecure $ENV{PATH} while running with -T switch)
>> I don't want to disable the -T switch but I need to be able to call
>> sendmail.
>
> Set $ENV{PATH} explicitly.
>
> $ENV{PATH} = '';
>
Perfect!, That worked well.

Thanks

Report this message