in reply to Re^3: running process from CGI
in thread running process from CGI

Well ! That is more or less what i had been doing. These are relelant lines from my CGI script.
`echo -e "$pdbdir\n$pdbdir/$pdbid.new\n" > $pdbdir/hbopt`; `cd $pdbdir ; $progpath/hbplus/hbplus < $pdbdir/hbopt`;
i'm writing the required input parameters to the file 'hbopt' in the relevant directory. This file is being created without problems. Then i invoke the script as shown by the second line of code. This program either does not run at all, or does not create output file anywhere. There are no error messages in my apache error logs.

Replies are listed 'Best First'.
Re^5: running process from CGI
by cdarke (Prior) on Apr 12, 2007 at 12:56 UTC
    Test $? after the backticks commands and output "$!" if non-zero. You might also try running the cgi script from the command line.
      $? is non-zero, but $! returns undef. thanks so much for you help cdrake !