On 2002.06.05 22:37 ebinc wrote:
> Hi Forum
> I installed Red Hat and plesk The only way my cgi scripts work is if I
> specify
> /usr/bin/perl/ -w
> I never had to edit a script before like this to work
> Is there a problem with the install

It's competely normal to have to have the _first_ characters of
a script be

#!/path/to/interperter

That's how the system knows which interpreter (language) to use.

See "man execve".

This is the basis of the file command, see "man file" and
"man magic".

The script also has to be marked executable.  See "man chmod".

For an example, see the contents of /usr/bin/apropos.

The only other alternative is to imbed the scripting language
into html, i.e. use php or imbedded perl.  You still wind
up having to tell the web server what language you're using.
Like:

<?php
some-php-code-goes-here
?>

Regards,

Karl <[EMAIL PROTECTED]>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to