Re: Pipelining tar create and tar extract the "Python" way...

2009-09-25 Thread Ishwor Gurung
Ray. Hi >> >   tar cvf - SrcDir | (cd /dest ; tar xvf -) Check this out Ray if you haven't done it already http://docs.python.org/library/tarfile.html " The tarfile module makes it possible to __read__ and write tar archives, including those using gzip or bz2 compression. " Try breaking it up the

Re: Pipelining tar create and tar extract the "Python" way...

2009-09-25 Thread Ray Van Dolson
On Wed, Sep 23, 2009 at 04:22:36PM -0700, Ray Van Dolson wrote: > On Wed, Sep 23, 2009 at 03:52:11PM -0700, Ray Van Dolson wrote: > > Hi all; > > > > In the land'o'shell, I can do something like the following: > > > > tar cvf - SrcDir | (cd /dest ; tar xvf -) > > > > Bad form replying to my o

Re: Pipelining tar create and tar extract the "Python" way...

2009-09-23 Thread Ray Van Dolson
On Wed, Sep 23, 2009 at 03:52:11PM -0700, Ray Van Dolson wrote: > Hi all; > > In the land'o'shell, I can do something like the following: > > tar cvf - SrcDir | (cd /dest ; tar xvf -) > Bad form replying to my own post... while I'd still like to know if this is possible to do with the tarfile

Pipelining tar create and tar extract the "Python" way...

2009-09-23 Thread Ray Van Dolson
Hi all; In the land'o'shell, I can do something like the following: tar cvf - SrcDir | (cd /dest ; tar xvf -) I'd like to learn the "Python" way to reproduce the above. Obviously I could use the subprocess module and just call that exact command above, but is there a way to do this with the t