branch : pmacs2
This commit is contained in:
moculus 2008-10-06 04:55:38 +00:00
parent f48db1edda
commit 7204c2b29d
2 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ class Pipe(Method):
(prog, cmd, shell) = self._parse(w, **vargs)
if prog is None or not cmd:
return
self._dopipe(w, prog, cmd, shell)
def _dopipe(self, w, prog, cmd, shell):
pipe = Popen(cmd, shell=shell, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
pid = pipe.pid

View File

@ -80,7 +80,7 @@ class AwkFilterFile(Exec):
cmdname='awk', bufname='*Awk-Output*',
opts={'data': vargs['path']})
class AwkFilterBuffer(Method):
class AwkFilterBuffer(Pipe):
pass
class AwkFilterInput(Method):
pass