Re: os.popen and broken pipes

2007-02-09 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Philipp Pagel <[EMAIL PROTECTED]> wrote: > Antoon Pardon <[EMAIL PROTECTED]> wrote: > > On 2007-02-09, Philipp Pagel <[EMAIL PROTECTED]> wrote: > > > for filename in file_list: > > > file = os.popen('uncompress -c '+filename, 'r') > > > do_something(file) >

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Chris <[EMAIL PROTECTED]> wrote: > It could easily be the 2gig file size limitation, how large are the > extracts? The files are much smaller than that, so that's not the issue. Anyway, Antoon pointed me in the right direction. Thanks for the help Philipp -- Dr. Philipp Pagel

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Antoon Pardon <[EMAIL PROTECTED]> wrote: > On 2007-02-09, Philipp Pagel <[EMAIL PROTECTED]> wrote: > > for filename in file_list: > > file = os.popen('uncompress -c '+filename, 'r') > > do_something(file) > > file.close() > > > > This works fine for some files but results in > > > > 'wr

Re: os.popen and broken pipes

2007-02-09 Thread Antoon Pardon
On 2007-02-09, Philipp Pagel <[EMAIL PROTECTED]> wrote: > > Hi Pythoneers, > > I need to process a large number of files which have been packed by the > UNIX compress tool (*.Z files). As I am not aware of a compress > equivalent of the gzip, zipfile or bzip2 modules, I thought I'd use the >

Re: os.popen and broken pipes

2007-02-09 Thread Chris
It could easily be the 2gig file size limitation, how large are the extracts? -- http://mail.python.org/mailman/listinfo/python-list

os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Hi Pythoneers, I need to process a large number of files which have been packed by the UNIX compress tool (*.Z files). As I am not aware of a compress equivalent of the gzip, zipfile or bzip2 modules, I thought I'd use the uncompress or zcat commands directly to deal with the files: for