in reply to Re: How to do system calls in cgi programs
in thread How to do system calls in cgi programs

Strangely, this solution doesn't seem to work. All the permissions are wide open and there is no error reported from the system call. I placed an else clause in runReports() to indicate success but there is no print out from that either.
sub runReports { print "Generating Reports for $script_to_call\n"; my $exit_val = system($script_to_call); if ( $exit_val ) { print "<p>System call failed with an exit value $exit_val\n"; print "<p>Let's see what a backtic exec shows us\n"; print '<pre>', `$script_to_call`, '</pre>'; } else { print "<p>Look for reports in /home/donfox/BioDataProject/kim/Re +ports"; } }
The program just runs but no reports are generated. The driver script for the reports works fro mthe command line, both in the cgi-bin and back in it's own directory. ??? Tanks