Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message"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
Post Follow-up to this messageOn 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
Post Follow-up to this messageIn 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.
Post Follow-up to this message"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
Post Follow-up to this messageMatt 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.
Post Follow-up to this messageOn 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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.