[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] #! is not interpreted
- Subject: Re: [cobalt-users] #! is not interpreted
- From: flash22@xxxxxxx
- Date: Wed Feb 28 00:26:28 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Wed, 28 Feb 2001, Katrin [iso-8859-1] Çappar wrote:
> We have the problem with one of our shells that the
> #! is not interpreted (i.e. perl scripts are not
> executed from browser but from shell).
I'm not quite sure what you are asking...
Perl scripts should start with
#! /usr/bin/perl
shell scripts should have the name of the shell
#!/bin/sh
If you are uploading scripts make sure you have a normal newline at the
end...
It *must* be the very first line, and if it has arguments, they can't be
over 512 bytes long..
If it has no arguments, it also can't have any trailing spaces in some
cases...
The path has to be correct, no searching is done generally...
It has to be executable, or #! is ignored...if it's a cgi, cgi's have to
be enabled and the extension has to be one of the recognized cgi types
(.pl, .cgi)
Hope that helps...
gsh
Linux Registered User 72146