Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41924 > unrolled thread
| Started by | luggw1@elpasotel.net |
|---|---|
| First post | 2013-03-26 10:06 -0700 |
| Last post | 2013-03-28 15:35 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
Help with zip in a Python exercise luggw1@elpasotel.net - 2013-03-26 10:06 -0700
Re: Help with zip in a Python exercise Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-26 13:22 -0400
Re: Help with zip in a Python exercise Anssi Saari <as@sci.fi> - 2013-03-28 15:35 +0200
| From | luggw1@elpasotel.net |
|---|---|
| Date | 2013-03-26 10:06 -0700 |
| Subject | Help with zip in a Python exercise |
| Message-ID | <6d95376b-1c56-4710-b81b-87177b189c5a@googlegroups.com> |
I've been working through a Python tutorial online and one of the exercises uses the zip command. The only problem is that the command doesn't work. I've read through the man page for zip and it looks like what I'm attempting should work, but it doesn't. The command is: zip -qr /media/backup/backups/test/20130326100218.zip -i /home/luggw1/Documents/ /home/luggw1/Code/ The error it produces is: zip error: Invalid command arguments (nothing to select from) Can anybody point out the error of my ways? Thanks. Bill Lugg
[toc] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2013-03-26 13:22 -0400 |
| Message-ID | <mailman.3760.1364318567.2939.python-list@python.org> |
| In reply to | #41924 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Mar 26, 2013 at 1:06 PM, <luggw1@elpasotel.net> wrote: > I've been working through a Python tutorial online and one of the > exercises uses the zip command. The only problem is that the command > doesn't work. I've read through the man page for zip and it looks like > what I'm attempting should work, but it doesn't. > > The command is: > > zip -qr /media/backup/backups/test/20130326100218.zip -i > /home/luggw1/Documents/ /home/luggw1/Code/ > > The error it produces is: > > zip error: Invalid command arguments (nothing to select from) > > Can anybody point out the error of my ways? > Not sure what os you are using. If linux, then the zip command looks odd. -q is quiet mode, you might want to remove that til it works. Also not sure your -i is set up propery. Try to google zip tutorial as this isn't a python question at all > > Thanks. > Bill Lugg > -- > http://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Date | 2013-03-28 15:35 +0200 |
| Message-ID | <vg37gkrve8r.fsf@coffee.modeemi.fi> |
| In reply to | #41924 |
luggw1@elpasotel.net writes: > I've been working through a Python tutorial online and one of the exercises uses the zip command. The only problem is that the command doesn't work. I've read through the man page for zip and it looks like what I'm attempting should work, but it doesn't. > > The command is: > > zip -qr /media/backup/backups/test/20130326100218.zip -i /home/luggw1/Documents/ /home/luggw1/Code/ -i simply isn't used to to specify which directories you want to zip. You can use it to specify filenames that you want in your zip, regardless of where they are. Not exactly an option I've ever had use for in over a decade of using zip... Just leave -i out of the command and you'll probably get what you intended.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web