Structed has asked for the wisdom of the Perl Monks concerning the following question:
ccupdate_db -ExcelFile /var/www/cgi-bin/upload/test.xls -q
This will output:# Variables alsway hold the full path to the file mentioned my $ccupdate_db = "/var/www/cgi-bin/ccupdate_db"; my $excel_file = "$uploadedfile"; #i.e. "/var/www/cgi-bin/upload/test. +xls" my @args = ($ccupdate_db, "-ExcelFile $excel_file", "-q"); my $exit_code = system(@args); print "Exit Code: ".$exit_code/256."<br>"; print "Error: ".$!:"<br>"; print "ARGS: "; foreach my $val (@args) { print $val." "; }
Exit Code: 2 Error: Bad file descriptor Args: /var/www/cgi-bin/ccupdate_db -ExcelFile /var/www/cgi-bin/upload/test.xls -q
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The System function and its usage
by mr_mischief (Monsignor) on Sep 28, 2007 at 14:58 UTC | |
|
Re: The System function and its usage
by jettero (Monsignor) on Sep 28, 2007 at 14:58 UTC | |
by Structed (Novice) on Sep 28, 2007 at 15:34 UTC | |
by perlfan (Parson) on Sep 28, 2007 at 15:41 UTC | |
|
Re: The System function and its usage
by toolic (Bishop) on Sep 28, 2007 at 15:06 UTC | |
|
Re: The System function and its usage
by blue_cowdawg (Monsignor) on Sep 28, 2007 at 15:07 UTC |