Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks 7zip via Perl appears to only display what it is doing once it's done, I've tried various flushing techniques with no success. One thing I can't seem to get right is trying it with backticks or qx so could someone please tell me the best way to do it. Putting backticks around the our zip_cmd gives me an error 7zip is not an internal or external command...
An example command 7z.exe a -r -mx0 -tzip c:\temp\test.zip d:\*
a=archive -r=recursive -mx0=NoCompression -tzip=ZipFormat zipPath and D: is the item to zip.
our $zip_cmd = '"c:\\Program Files\\7-Zip\\7z.exe"'; + our $zip_options = 'a -r -mx0 -tzip';
my $command = $zip_cmd . ' ' . $zip_options . ' ' . $target_zip
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and 7zip and backticks
by GrandFather (Saint) on Feb 26, 2016 at 02:10 UTC | |
by Anonymous Monk on Feb 26, 2016 at 03:17 UTC | |
by Anonymous Monk on Feb 26, 2016 at 03:23 UTC | |
|
Re: Perl and 7zip and backticks
by BrowserUk (Patriarch) on Feb 26, 2016 at 04:12 UTC | |
by Anonymous Monk on Feb 27, 2016 at 22:43 UTC | |
by BrowserUk (Patriarch) on Feb 27, 2016 at 23:13 UTC | |
|
Re: Perl and 7zip and backticks
by Corion (Patriarch) on Feb 26, 2016 at 07:39 UTC | |
|
Re: Perl and 7zip and backticks
by hippo (Archbishop) on Feb 26, 2016 at 09:48 UTC | |
by Anonymous Monk on Feb 27, 2016 at 22:40 UTC |