in reply to Re: Can't Get Command Line Unzipper to Execute in CGI/Perl Script
in thread Can't Get Command Line Unzipper to Execute in CGI/Perl Script

I tried to execute the unzipper with back ticks/quotes too and it didn't work.
`no-frills.exe $uploadedfile`;
I just want to unzip a file first. I have a lot more additional (also sloppy but it works) code to add but I can't proceed if I can't get the script to execute an unzip...

Thanks very much for the valuable suggestion to try the full path. We'll see if that helps.

  • Comment on Re^2: Can't Get Command Line Unzipper to Execute in CGI/Perl Script
  • Download Code

Replies are listed 'Best First'.
Re^3: Can't Get Command Line Unzipper to Execute in CGI/Perl Script
by ikegami (Patriarch) on Jun 25, 2009 at 02:51 UTC
    system('no-frills.exe', $uploadedfile) or die("no-frills: $?/$!\n");

    Using the multi-argument form of system will help handle non-trivial file names.

    Make sure the current work directory is what you expect it to be.