|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I know how to zip files from the command line, but how can I call the zip command with perl to create a custom zip file on the fly?
|
|
#2
|
|||
|
|||
|
Either us Archive::Zip or something like this:
my @args = ('/usr/bin/zip',ArgumentsToZip,DestFile,FilesToZip); my $result = system(@args); Then check $result to see if it succeeded. I usually use -j as an argument to strip off the path for the zipped files. Hope this helps. <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by bshold: I know how to zip files from the command line, but how can I call the zip command with perl to create a custom zip file on the fly?[/quote] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > calling zip from perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|