I can't get this cgi script I downloaded to run...

the line in the apache log says:

  $ tail -2 /var/log/apache/error.log
  [Fri Apr 26 18:40:55 2002] [error] (2)No such file or directory: exec of
/usr/lib/cgi-bin/agbot/agbot.cgi failed
  [Fri Apr 26 18:40:55 2002] [error] [client 192.168.7.98] Premature end of
script headers: /usr/lib/cgi-bin/agbot/agbot.cgi

so I do a bit of manual checking like so:

  $ ls -l /usr/lib/cgi-bin/agbot/agbot.cgi
  -rwxr-xr-x    1 www-data www-data    52600 Apr 26 18:31
/usr/lib/cgi-bin/agbot/agbot.cgi

That looks ok, so then I:

  $ head -1 /usr/lib/cgi-bin/agbot/agbot.cgi
  #!/usr/bin/perl
  $ which perl
  /usr/bin/perl

Hmm, that looks right...

  $ ls -ld /usr/lib/cgi-bin/agbot
  drwxr-sr-x    3 www-data www-data     4096 Apr 26 18:31
/usr/lib/cgi-bin/agbot

And that looks ok, too...

So I try to run it:

  $ /usr/lib/cgi-bin/agbot/agbot.cgi
  bash: /usr/lib/cgi-bin/agbot/agbot.cgi: No such file or directory

however, run it like this:

  $ perl /usr/lib/cgi-bin/agbot/agbot.cgi

and it works just fine..  Huh?  I don't get it..

=====
The makers may make             | Alex Swavely
and the users may use,          | web developer
but the fixers must fix         | [EMAIL PROTECTED] 
with but minimal clues.         | [EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to