Getting the result of a process after exec*()
- From: AndrewTK <atkedzierski@xxxxxxxxx>
- Date: Fri, 17 Aug 2007 14:33:16 -0000
Hi,
I am trying to write a Python script that takes a ZIP file from a web
form (using CGI) and uses either of the UN*X unzip, gunzip, tar,
bunzip2 utilities to expand it.
I can use Python to save the script to disk; but processing it is
another matter. If for example I have received a *.tar.gz file, I need
to first pass it through gunzip; then through the tar utility. I also
want to process the resulting directory.
The problem for me is this: once an external process is called via
exec*() the script has effectively fulfilled its task. Is there any
way one can process a file with an external process and continue
further processing in Python; /once the external processing is
completed/?
Many thanks,
Andrew
.
- Follow-Ups:
- Re: Getting the result of a process after exec*()
- From: markacy
- Re: Getting the result of a process after exec*()
- From: Miles
- Re: Getting the result of a process after exec*()
- Prev by Date: Re: Need to generate some functions.
- Next by Date: Re: how to pass a custom object to re.search?
- Previous by thread: unexpected optparse set_default/set_defaults behavior
- Next by thread: Re: Getting the result of a process after exec*()
- Index(es):
Relevant Pages
|
|