Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-14 Thread David
David Eric wrote: On Tue, Oct 13, 2009 at 5:17 PM, Kent Johnson > wrote: On Tue, Oct 13, 2009 at 4:38 PM, David Eric mailto:cii...@gmail.com>> wrote: > as far as print zip_command, i would add that to the program however, doesnt > just declaring it ac

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 5:17 PM, Kent Johnson wrote: > On Tue, Oct 13, 2009 at 4:38 PM, David Eric wrote: > > > as far as print zip_command, i would add that to the program however, > doesnt > > just declaring it actually trigger it..thus it would executed and the > > command line would get prin

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Kent Johnson
On Tue, Oct 13, 2009 at 4:38 PM, David Eric wrote: > as far as print zip_command, i would add that to the program however, doesnt > just declaring it actually trigger it..thus it would executed and the > command line would get printed as well? I'm not sure what you mean by "declaring", but assig

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Eike Welk
Hello David! This is meant as an addition to Kent's remarks that 'gzip' is inappropriate, and you should use tar to create the archive. The 'tar' program can additionally use 'gzip' to compress the archive. A useful command would be: tar cvzf archive_name.tgz file_or_dir_1 file_or_dir_2 and_so

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 4:02 PM, Kent Johnson wrote: > On Tue, Oct 13, 2009 at 2:58 PM, David Eric wrote: > > printing the command line, > > would it be > > print('gzip {0} {1}'.format(target, ' '.join(source))? > > Yes, or just > print zip_command > > > and as far as using the tar command, >

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Kent Johnson
On Tue, Oct 13, 2009 at 2:58 PM, David Eric wrote: > printing the command line, > would it be >  print('gzip {0} {1}'.format(target, ' '.join(source))? Yes, or just print zip_command > and as far as using the tar command, > i have three files, > file1,file2,file3 > i wanted to preserve that st

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
On Tue, Oct 13, 2009 at 4:14 PM, Dave Angel wrote: > (You top-posted, instead of adding your part to the end. That's frowned > upon in a mailing list, at least in this one.) > (You replied privately, and forgot to CC the tutor list. I'm forwarding it > there with my response) > > > David Eric w

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Dave Angel
(You top-posted, instead of adding your part to the end. That's frowned upon in a mailing list, at least in this one.) (You replied privately, and forgot to CC the tutor list. I'm forwarding it there with my response) David Eric wrote: wow thank you yes...youre right i did want to pass a lis

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Dave Angel
David Eric wrote: doing a python tutorial and one of the assignments says to develop a program that backsup files to zip files into a backup directory im using Darwin 10.0.0 unix version: this is what i came up with thus far, i did copy the sample program given but made changes for my unix OS:

Re: [Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread Kent Johnson
On Tue, Oct 13, 2009 at 2:01 PM, David Eric wrote: > doing a python tutorial and one of the assignments says to develop a program > that backsup files to zip files into a backup directory > > im using Darwin 10.0.0 unix version: > > this is what i came up with thus far, i did copy the sample progr

[Tutor] writing sample program that zips files and saves in a backup directory

2009-10-13 Thread David Eric
doing a python tutorial and one of the assignments says to develop a program that backsup files to zip files into a backup directory im using Darwin 10.0.0 unix version: this is what i came up with thus far, i did copy the sample program given but made changes for my unix OS: #!/usr/bin/env pyth