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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.