in reply to Re: Am I missing something major here (system/exec)?
in thread Am I missing something major here (system/exec)?
I'm running on a Windows NT server. Where I have the HTML and perl is the normal location for this type of stuff and other scripts there run fine (from both form and hyperlink clicking).
I've now changed the 'runindex.pl' script to this:
I can't 'use warnings' it's not in my Perl installation.#!/usr/local/bin/perl -w use strict; use CGI qw(:standard); use CGI::Carp qw/fatalsToBrowser/; print "Content-Type:text/html\n"; print "\n"; print "<HTML>\n"; print "<Head></Head>"; print "<body>"; my $program="index.bat"; #$status= system ($program) ==0 or die "$program exited funny: $?"; print "</body>"; print "</HTML>";
I'm getting this error now
and 'index.bat' isn't running (because the scripts it should run aren't updating the files they should update!).Content-type: text/html Software error: index.bat exited funny: 256 at E:\Perlcgi\pipeline\runindex.pl line 14 +.
I can still execute 'runindex.pl' from the dos command line on the server though, so I'm dead confused.
I've tried changing the HTML so that the script runs from a form submission, but I get exactly the same results.
Would it be easier for me to execute the perl scripts that index.bat is trying to run, within 'runindex.pl'? (Like I know how to do that - not!) This is what index.bat does:
i.e runs a whole bunch of other perl scripts! Any more ideas? I've looked up the error code - it apparenlty can't fork the subprocesses. Why would that be?todayindex.pl agentview2.pl serviceview1.pl salesview1.pl maview1.pl hoview1.pl caview1.pl bmview1.pl allindex.pl beneview1.pl charityview1.pl facview1.pl insuranceview1.pl mortview1.pl regulationview1.pl salesadvview1.pl savview1.pl systemsview1.pl trainview1.pl previndex.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Am I missing something major here (system/exec)?
by ww (Archbishop) on May 24, 2006 at 13:10 UTC |