Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Perl Application, Server error
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


Report this thread to moderator Post Follow-up to this message
Old Post
Sukhbir Dhillon
03-27-04 04:16 AM


Re: Perl Application, Server error
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Matt Garrish
03-27-04 04:16 AM


Re: Perl Application, Server error
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

Report this thread to moderator Post Follow-up to this message
Old Post
Sukhbir Dhillon
03-27-04 04:16 AM


Re: Perl Application, Server error
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Mike
03-27-04 04:16 AM


Re: Perl Application, Server error
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Matt Garrish
03-27-04 04:16 AM


Re: Perl Application, Server error
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Giovanni Zezza
03-28-04 04:53 AM


Re: Perl Application, Server error
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.[
/color]
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Sukhbir Dhillon
03-29-04 03:13 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:49 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.