in reply to Script to unzip a zip file on the server......

You're using strict, but haven't defined the scope of $r. Try:
my $r = system("unzip -o -q -C $zipfile -d $Verzeichnis");
-s.

Replies are listed 'Best First'.
Re: Re: Script to unzip a zip file on the server......
by Anonymous Monk on Mar 27, 2003 at 17:35 UTC
    OK, I changed that line and now I get: Error 500 and Error 404 Could that be b/c I don't have a zip file on the space at the moment? I do have it set up to unzip to the LeagueSite directory, don't I?
      Error 404 means "file not found": ie the web server couldn't find the script you were trying to get.

      Error 500 means "internal server error": usually an error in your script. Look in your server error logs to find out the specific error log, or try this in your script: use CGI::Carp qw(fatalsToBrowser);

      andramoiennepemousapolutropon

        the line you suggest is already in my script. Any other ideas? I have the file in the cgi-bin and the _ubl.zip file is on the public_html directory.