in reply to Unzip with password?
Of course you need to make sure that $zipname and $fname contain no evil characters.my $r; { open(ZIP,"-|","/usr/local/bin/unzip -P '·······' -p cache/$zipname $fname") || die "unzip failure"; local($/)=undef; $r=<ZIP>; close(ZIP); };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Unzip with password?
by runrig (Abbot) on Jan 11, 2013 at 23:14 UTC |