From: 7stud -- Date: 2007-10-30T16:25:59+09:00 Subject: Re: Zip an existing directory? 7stud -- wrote: > Actually, that doesn't work because the cd system() call executes in a > separate subprocess, so the zip system() call that executes in its own > subprocess can't see the changed directory. You need to execute both > commands in the same subprocess, so you would have to write it like > this: > > system("cd /Users/autie/2testing; zip -r zipped_rails_app4 ./dir3") > Gee whiz, I can't get anything straight tonight. In your case, it would be like this: system("/Users/petermarks/Desktop/orbus/public/1/daily"; "zip -r zipped_rails_app ./2007-10-29") -- Posted via http://www.ruby-forum.com/.