Christopher M Burger wrote:
Hello everyone.
I have written a perl program that will take a tar file and untar it then
move file from the untarred direcories to it's directory on the webserver.
However, when I run the program thru a webpage it does not untar the file.
If I run the program localy it works fine. I have even run the program
localy as www the user the webserver uses and it works fine, but when turn
around and run the program thru my web browser it does not work. If anyone has any reasons why this would happen I would appreciate it.
I'm running in strict mode, and am using the following system command to
untar.
eval { system("/usr/local/bin/gtar -C /$temp_directory -xzf
/$temp_directory/$short_name") == 0 or die "sorry! Could not extract file
$temp_directory/$short_name" };

Try putting debug lines like



my $CMD = "/usr/local/bin/gtar -C /$temp_directory -xzf $temp_directory/$short_name >>/tmp/errs 2>&1"


print STDERR "Executing $CMD\n";
eval { system($CMD) && die "Error" };





where $temp_directory is the full path to the tar file, and $short_name is
the name of the tar file.
Thanks
Christopher Burger






-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to