From: Prasadhnc C Date: 2012-11-28T20:38:45+09:00 Subject: Re: CGI question --14dae93b637476663b04cf8c9796 Content-Type: text/plain; charset=ISO-8859-1 entering control-z will print the html contents on the console, If you want to pass some input to the script, you can enter name-value pairs in the console like, name=xyx. On Wed, Nov 28, 2012 at 4:58 PM, Carlo E. Prelz wrote: > Subject: CGI question > Date: Wed 28 Nov 12 07:58:17PM +0900 > > Quoting Assaf Shomer (lists@ruby-forum.com): > > > When i run this program i get nothing on the console output, and when i > > tried to run it in irb, it got stuck on the cgi = CGI.new("html3") line > > (by stuck I mean further ENTERs don't give me the standard > > irb(main):007:0> ) and gave the following message: > > ============== > > (offline mode: enter name=value pairs on standard input) > > ============== > > can anyone explain to me what's going on? > > I have no experience with the cgi package at all, but the message is > clear: IRB is waiting for something on its standard input, waiting for > name=value pairs. If you want to find out exactly what these > name=value pairs are, I suggest you study the cgi package more. But I > can tell you that (at least in Linux) you tell the shell (and IRB) > that you are done with providing data from the standard input with > Ctrl-D. Indeed, if you press Ctrl-D at the above prompt, the object > creation call returns successfully. > > Carlo > > -- > * Se la Strada e la sua Virtu' non fossero state messe da parte, > * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe > * di parlare tanto di amore e di rettitudine? (Chuang-Tzu) > > --14dae93b637476663b04cf8c9796 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
entering control-z will print the html contents on the console,
<= div>If you want to pass some input to the script, you can enter name-value = pairs in the console
like, name=3Dxyx.
=A0
On= Wed, Nov 28, 2012 at 4:58 PM, Carlo E. Prelz <fluido@fluido.as> wrote:
=A0 =A0 =A0 =A0 Subject: = CGI question
=A0 =A0 =A0 =A0 Date: Wed 28 Nov 12 07:58:17PM +0900

Quoting Assaf Shomer (lists@ruby-fo= rum.com):

> When i run this program i get nothing on the console output, and when = i
> tried to run it in irb, it got stuck on the cgi =3D CGI.new("html= 3") line
> (by stuck I mean further ENTERs don't give me the standard
> irb(main):007:0> ) and gave the following message:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> (offline mode: enter name=3Dvalue pairs on standard input)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> can anyone explain to me what's going on?

I have no experience with the cgi package at all, but the message is<= br> clear: IRB is waiting for something on its standard input, waiting for
name=3Dvalue pairs. If you want to find out exactly what these
name=3Dvalue pairs are, I suggest you study the cgi package more. But I
can tell you that (at least in Linux) you tell the shell (and IRB)
that you are done with providing data from the standard input with
Ctrl-D. Indeed, if you press Ctrl-D at the above prompt, the object
creation call returns successfully.

Carlo

--
=A0 * =A0 =A0 =A0 =A0 Se la Strada e la sua Virtu' non fossero state me= sse da parte,
* K * Carlo E. Prelz - fluido@fluido.as= =A0 =A0 =A0 =A0 =A0 =A0 che bisogno ci sarebbe
=A0 * =A0 =A0 =A0 =A0 =A0 =A0 =A0 di parlare tanto di amore e di rettitudin= e? (Chuang-Tzu)


--14dae93b637476663b04cf8c9796--