Thanks - Someone already pointed out that I had a blank line at the
beginning of the file, which would cause the execution to fail.
-----Original Message-----
From: Stephen P. Potter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 1:41 PM
To: Anderson, Carlin
Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: Re: Newbie Run time issue
Lightning flashed, thunder crashed and "Anderson, Carlin"
<Carlin_Anderson@apl.
com> whispered:
| I am having problems getting a perl program to execute through my web
| server, and have started to run some stand-alone tests.
|
| Here is a short dump of my session - the first section is where I am
trying
| to call the program directly, and the second is where I am executing it
| through the perl program directly.
|
|
| /ecommerce/webpages/cgi-bin--> getinv.pl
| getinv.pl[13]: use: not found
| getinv.pl[14]: use: not found
| getinv.pl[16]: syntax error at line 17 : `{' unexpected
|
|
| /ecommerce/webpages/cgi-bin--> perl getinv.pl
| supply returned = 96
| demand returned = 20
| Status: 200
| Content-Type: text/plain
| Available: 76
First off, what OS are you using? If you are using some form of UNIX
(which it appears to be), then in the first instance the script is being
parsed by one of the shells (looks like sh/bash/ksh to me). That probably
means that your perl interpreter isn't in /usr/local/bin/perl. Try doing a
"which perl" or "whence perl" to see where it really is. Then change the
shebang (#!) line to point to the proper location.
As far as running it through your web server, you'll need to provide more
information. Check your log files to see what error it is reporting. Are
you sure that /ecommerce/webpages/cgi-bin is actually set up to be the
proper location for CGI execution?
-spp
--
Stephen P Potter Columbus, Ohio, USA [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point." -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training http://www.unixlabs.net/~spp/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]