In article
<8efc5501-7f65-48bb-abfb-ed38e738aae0@e10g2000prf.googlegroups.com>,
newbiegalore <banerjee.anirban@gmail.com> wrote:
> Hello all :-),
> I am fairly new to writing CGI code using shell scripts. I have put
> up a site which takes an input via a form and checks a pgsql db for
> the matching entry and returns the associated fields for that. I want
> that if that entry is not found in the db I should be able to populate
> the db in real-time by running another shell script.
>
> I added the second program in the cgi-bin folder (sec.sh) and then
> tried to run it from my main cgi script. It seems that this program
> just does not run. The code works OK as I have tested on my local
> machine, I have set the permissions to 755, changed extension to .cgi
> as well and have tried to get it to work. Even if sec.sh has just echo
> "hello" > $wd/output , I can see the output file but there is nothing
> in it!!!
>
> Am I missing something crucial regarding what can be executed in the
> cgi-bin directory? Any advice would be very ful.
This question would probably be more appropriate for
comp.infosystems.
www.servers.unix.
Are you running the program by full pathname or just the name of the
script? I'll bet the cgi-bin directory isn't in $PATH, so if you don't
use the full pathname you won't find it.
--
Barry Margolin,
barmar@alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***