I am uploading a text file to a temp directory, then trying to execute a perl script against that log file. The upload works fine, but the execution does not, any ideas? Here is the code:
<?
if ($img1_name != "") {
copy("$img1", "/www/avery/sigma/potw/$img1_name")
or die("Couldn't copy the file!");
passthru("./www/avery/cgi-bin/doac.pl Delta
/www/avery/sigma/potw/$img1_name ");
} else {
die("No input file specified");
}
?>
The perl script requires two pieces of information
doac.pl "Test Name" "TestFile"
I am trying to pass the "Test Name" directly and use the $img1_name as the "Test File".
Complete novice...but trying to learn.
D. Avery