This may be in relationship to my cron job problem, and makes me think something in my account is majorly hosed.
I've got a perl file hw.pl as follows:
#!/usr/bin/perl
print "Hello World!\n" ;
exit(0);
This is sitting in my cgi-bin directory.
I have no problem executing it with
perl hw.pl (if sitting in cgi directory)
or
perl /home/beartopi/www/cgi-bin/hw.pl (if sitting elsewhere)
Now I've created a CGI file to execute this perl file, the CGI is called hw.cgi:
#!/bin/sh
perl /home/beartopi/www/cgi-bin/hw.pl
I try executing it from the command line in my cgi directory as follows:
./hw.cgi
and I get bash: /hw.cgi: bad interpreter: No such file or directory.
I've got other cgi files, set up identically, that do work on the command line.
I am trying to set up a simple test case for Tech Support for my cron job problem and now I cannot even get this to run.
All my .cgi and .pl file permissions are at 755.
Is there anything real obvious that I am missing??!!??


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks