Re: Zip file making issues

2010-09-20 Thread Ryan Coleman
That changing of directories doesn't solve the PHP script I have building ZIP files, though, with a single shell command (path/to/zip /path/to/zip.zip -r /path/to/folder/to/zip). But I have solved this now with another PHP script that I can call both as part of my Apache CGI but also as a CLI.

Re: Zip file making issues

2010-09-20 Thread Matthew Seaman
On 21/09/2010 04:53:58, Ryan Coleman wrote: > As I said in my OP: I could just run a "cd" to the directory parent > and do it there - that would solve the problem - but that's simply > too dangerous if the script generator throws an error on the next set > of commands (a risk I do not want to take)

Re: Zip file making issues

2010-09-20 Thread Ryan Coleman
On Sep 20, 2010, at 11:14 PM, Michael Ross wrote: > Am 21.09.2010, 05:53 Uhr, schrieb Ryan Coleman : > > >> >> As I said in my OP: I could just run a "cd" to the directory parent and do >> it there - that would solve the problem - but that's simply too dangerous if >> the script generator thr

Re: Zip file making issues

2010-09-20 Thread Michael Ross
Am 21.09.2010, 05:53 Uhr, schrieb Ryan Coleman : As I said in my OP: I could just run a "cd" to the directory parent and do it there - that would solve the problem - but that's simply too dangerous if the script generator throws an error on the next set of commands (a risk I do not want

Re: Zip file making issues

2010-09-20 Thread Ryan Coleman
On Sep 20, 2010, at 10:32 PM, Matt Emmerton wrote: > > - Original Message - From: "Ryan Coleman" > To: "FreeBSD Questions" > Sent: Monday, September 20, 2010 11:11 PM > Subject: Zip file making issues > > > Does anyone have any advi

Re: Zip file making issues

2010-09-20 Thread Matt Emmerton
- Original Message - From: "Ryan Coleman" To: "FreeBSD Questions" Sent: Monday, September 20, 2010 11:11 PM Subject: Zip file making issues Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zi

Zip file making issues

2010-09-20 Thread Ryan Coleman
Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that zips a deep directory in a tree. But it makes the full path as part of the ZIP file. That's not what I want - I just want those directories that appear after the "*". In this case: "-