os.system('tar -c * | tar -C dst') ##Any other suggestions...

Thomas Krüger see_signature at nospam.nowire.org
Tue Apr 24 18:27:45 EDT 2007


list.repository at gmail.com:
> Any suggestions on a different approach or fix?

Check your commandline! The second command is wrong, -C is not valid as
the only option, a command is missing.
If you just want to archive files in a tarball try: "tar -c * > dst.tar"
or take a look at Python's tarfile lib.

Thomas

-- 
sinature: http://nospam.nowire.org/signature_usenet.png



More information about the Python-list mailing list