Home > Archive > PERL Programming > March 2004 > Perl Application, Server error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Perl Application, Server error
|
|
| Sukhbir Dhillon 2004-03-26, 11:16 pm |
| Hi! I'm trying to configure this perl application but getting server
error. I tried running my own goofy perl program from same folder and it
works fine.
I chmoded all the cgi files as per instructions.
Any help greatly appreciated.
Sukhbir
| |
| Matt Garrish 2004-03-26, 11:16 pm |
|
"Sukhbir Dhillon" <sdhillon@bridgeport.edu> wrote in message
news:40638678$0$20538$c3e8da3@news.astraweb.com...
> Hi! I'm trying to configure this perl application but getting server
> error. I tried running my own goofy perl program from same folder and it
> works fine.
> I chmoded all the cgi files as per instructions.
>
1) Don't post attachments.
2) Don't post entire scripts.
3) A server error is not a Perl problem, unless you would like to explain
what the error is.
If you're looking for a helpdesk, you've been standing in the wrong line...
Matt
| |
| Sukhbir Dhillon 2004-03-26, 11:16 pm |
| On Fri, 26 Mar 2004 16:58:20 -0500, Matt Garrish wrote:
>
> "Sukhbir Dhillon" <sdhillon@bridgeport.edu> wrote in message
> news:40638678$0$20538$c3e8da3@news.astraweb.com...
>
> 1) Don't post attachments.
> 2) Don't post entire scripts.
> 3) A server error is not a Perl problem, unless you would like to explain
> what the error is.
>
> If you're looking for a helpdesk, you've been standing in the wrong line...
>
> Matt
If it is server problem then my program shouldn't be running either. my
perl program works fine from the same folder but this one gives error
: bad interpreter: No such file or directory
I tried it on different servers but same result.
Sukhbir
| |
|
| In article <pan.2004.03.27.01.16.38.23991@bridgeport.edu>, Sukhbir Dhillon wrote:
> On Fri, 26 Mar 2004 16:58:20 -0500, Matt Garrish wrote:
>
>
> If it is server problem then my program shouldn't be running either. my
> perl program works fine from the same folder but this one gives error
>: bad interpreter: No such file or directory
> I tried it on different servers but same result.
> Sukhbir
The 'bad interpreter' line reads like the first magic line in your script is bad.
| |
| Matt Garrish 2004-03-26, 11:16 pm |
|
"Sukhbir Dhillon" <sdhillon@bridgeport.edu> wrote in message
news:pan.2004.03.27.01.16.38.23991@bridgeport.edu...
>
> If it is server problem then my program shouldn't be running either. my
> perl program works fine from the same folder but this one gives error
> : bad interpreter: No such file or directory
> I tried it on different servers but same result.
You're the one who said it was a server problem, not me. Now that you've
started sharing some information that might give people a clue as to what
your problem is, I would guess that: a) you've got the wrong path to the
perl interpreter in the shebang line; or b) that the line endings are
incorrect and more than just the shebang line is being read. The error,
however, is definitely not a Perl error (i.e., the shell that can't find the
executable, it's not (yet) anything in the code).
Matt
| |
| Giovanni Zezza 2004-03-27, 11:53 pm |
| Matt Garrish, nel messaggio <WH19c.49827$re.2573423@news20.bellglobal.com>,
scriveva:
>1) Don't post attachments.
>2) Don't post entire scripts.
>3) A server error is not a Perl problem, unless you would like to explain
>what the error is.
5) And please stop crossposting to it.comp.lang.perl, unless you write in
Italian.
Ciao.
| |
| Sukhbir Dhillon 2004-03-28, 10:13 pm |
| On Sat, 27 Mar 2004 01:48:15 +0000, Mike wrote:
> In article <pan.2004.03.27.01.16.38.23991@bridgeport.edu>, Sukhbir Dhillon wrote:
>
> The 'bad interpreter' line reads like the first magic line in your script is bad.
Heres my first few lines of program which is not working
#!/usr/bin/perl
my $configfile;
BEGIN {
if ($^O eq 'MSWin32') {
eval "use FindBin";
eval "use lib $FindBin::Bin";
chdir($FindBin::Bin);
}
}
####################
whereis perl
perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz
####################
heres shebang line of another program which works
#!/usr/bin/perl
I'm , where is the problem.
|
|
|
|
|