Anthony

Many thanks indeed, Anthony
You gave me the solution.
I did exactly what you told me and voilad!. The line "Hola, Manuel"
appeared.

I tried first the the advice'John Nichel but it didn't work

----- Original Message -----
From: "Anthony E. Greene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 8:35 AM
Subject: Re: CGI in Apache not work


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 30-Oct-2002/22:11 -0500, Manuel Tejada <[EMAIL PROTECTED]> wrote:
> >I use RedHat 7.2 in a PC workstation not for production, just for
homework.
> >This is the first time working with Apache. It is working fine with html
> >pages, but not with cgi programs.
> >I buil the following text cgi program called "mi_cgi.pl" in my home
> >directory /home/manuel/ and then copy it to /var/www/cgi-bin :
> >
> >#! /usr/bin/perl
> >print "Content-Type: text\html\r\n\r\n";
> >print "Hola, Manuel.";
>
> In line 1, there should not ba a space between the exclamation mark and
> the path to the interpreter (perl).
>
> In line 2, the slash mark between 'text' and 'html' should be forward '/',
> not backward '\'. Also in line 2, two newline characters '\n' is normal.
> The carriage return characters '\r' are not necessary.
>
> Try it like this:
>
> #!/usr/bin/perl
> print "Content-Type: text/html\n\n";
> print "Hola, Manuel.";
>
>
> Tony
> - --
> Anthony E. Greene <mailto:agreene@;pobox.com>
> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
> AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
> Linux: the choice of a GNU Generation. <http://www.linux.org/>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>
>
> iD8DBQE9wTGdpCpg3WyUI50RAmdMAJ993C3rOfMONkeggY4tbedIKHMpNQCePylp
> Wx96rw4uR70WeMNgkb5w9zw=
> =ltWz
> -----END PGP SIGNATURE-----
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to