parent
f48db1edda
commit
7204c2b29d
|
@ -84,7 +84,9 @@ class Pipe(Method):
|
||||||
(prog, cmd, shell) = self._parse(w, **vargs)
|
(prog, cmd, shell) = self._parse(w, **vargs)
|
||||||
if prog is None or not cmd:
|
if prog is None or not cmd:
|
||||||
return
|
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)
|
pipe = Popen(cmd, shell=shell, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
|
||||||
pid = pipe.pid
|
pid = pipe.pid
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ class AwkFilterFile(Exec):
|
||||||
cmdname='awk', bufname='*Awk-Output*',
|
cmdname='awk', bufname='*Awk-Output*',
|
||||||
opts={'data': vargs['path']})
|
opts={'data': vargs['path']})
|
||||||
|
|
||||||
class AwkFilterBuffer(Method):
|
class AwkFilterBuffer(Pipe):
|
||||||
pass
|
pass
|
||||||
class AwkFilterInput(Method):
|
class AwkFilterInput(Method):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue