rjahrman has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to zip up the files in a directory. The script is running in a cgi-bin (shared server). The files that I need to zip are in subdirectories of the cgi-bin. (so /cgi-bin/folder/subfolder/* needs to end up in /cgi-bin/archiveName.zip) Because I will be moving this script around, I can't rely on any modules being there.
I tried:
`zip -r folder/subfolder archiveName`;
But that didn't work. It's been a while since I've done Perl, so I don't remember how to capture errors on a shell command like this. That would probably be helpful if anyone could tell me.
Any other ideas on what else might be going wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: zip at shell not working
by Zaxo (Archbishop) on May 25, 2005 at 04:15 UTC | |
|
Re: zip at shell not working
by mifflin (Curate) on May 25, 2005 at 03:52 UTC |