🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Harto de Perl-CGI

#6009
From: sio2
Date: Sat, 23 Aug 2003 14:53
34 lines
2298 bytes
El s�bado, 23 de agosto de 2003, a las 10:31 GMT, Juli�n Albo escribi�:
> 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.

#v+
$ set | grep "METHOD\|LENGTH"
$ REQUEST_METHOD="POST" CONTENT_LENGTH=270 perl -e 'print
join("\n",map("$_=".$ENV{$_},keys %ENV)),"\n"' | \
grep "METHOD\|LENGTH"
CONTENT_LENGTH=270
REQUEST_METHOD=POST
#v-

S�, gracias a I�aki y a ti por las aclaraciones.

-- 
Y mis desdichas son como cerezas,
que voy por una y, de una en otra asidas,
vuelvo con todo un plato de tristezas.
                  --- Tom� de Burguillos ---
   Si     Di�xido de Silicio |        Debian GNU/Linux 
  /  \         (SiO2)        |    Jos� Miguel S�nchez Al�s
 O    O   Mineral de Cuarzo  |  sio2.arr@ba.online.fr | URL #257033
Technical Details
Message-ID: <slrnbkevvp.n8u.sio2.arr@cebolleta.net.dhis.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!22.red-80-37-129.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> <3F474294.22399FA8@terra.es>

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 08:00:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mail
From: sio2 <sio2.arr@ba.online.fr>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Harto de Perl-CGI
Date: Sat, 23 Aug 2003 16:53:45 +0200
Lines: 34
Message-ID: <slrnbkevvp.n8u.sio2.arr@cebolleta.net.dhis.org>
References: <pan.2003.08.14.14.20.14.830166@l3jane.net> <slrnbkecuc.i18.sio2.arr@cebolleta.net.dhis.org> <3F474294.22399FA8@terra.es>
Reply-To: sio2.arr@ba.online.fr
NNTP-Posting-Host: 22.red-80-37-129.pooles.rima-tde.net (80.37.129.22)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1061650809 6558059 80.37.129.22 (16 [113866])
X-Orig-Path: cebolleta.net.dhis.org!news
User-Agent: slrn/0.9.7.4 (Linux)