🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6007

Re: Harto de Perl-CGI

#6007
From: Julián Albo
Date: Sat, 23 Aug 2003 10:31
18 lines
1463 bytes
sio2 escribió:

> Lo suyo sería poder definirlas fuera pero esta línea de comandos:
> 
> $ REQUEST_METHOD="post" CONTENT_LENGTH=270 cat parametros | ./script.cgi
> 
> no me funciona: perl no las pilla como variables de ambiente. :(

Con esa línea le pasas las variables a cat, no a script.cgi

cat parametros | REQUEST_METHOD=post CONTENT_LENGTH=270 ./script.cgi

Debería funcionar.

Salu2
Technical Details
Message-ID: <3F474294.22399FA8@terra.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!50.red-213-96-228.pooles.rima-tde.NET!not-for-mail
References: <pan.2003.08.14.14.20.14.830166@l3jane.net> <slrnbkecuc.i18.sio2.arr@cebolleta.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,5de78cdd9c81965e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-08-23 03:31:50 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!50.red-213-96-228.pooles.rima-tde.NET!not-for-mail
From: Julián Albo <JULIANALBO@terra.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Harto de Perl-CGI
Date: Sat, 23 Aug 2003 12:31:48 +0200
Lines: 18
Message-ID: <3F474294.22399FA8@terra.es>
References: <pan.2003.08.14.14.20.14.830166@l3jane.net> <slrnbkecuc.i18.sio2.arr@cebolleta.net.dhis.org>
NNTP-Posting-Host: 50.red-213-96-228.pooles.rima-tde.net (213.96.228.50)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 1061634708 6114206 213.96.228.50 (16 [169296])
X-Mailer: Mozilla 4.8 [es] (X11; U; Linux 2.4.20-4GB i686)
X-Accept-Language: en