mirror of
https://github.com/kennethreitz-archive/procs.git
synced 2026-06-05 15:20:18 +00:00
17 lines
242 B
Python
17 lines
242 B
Python
import procs
|
|
|
|
chain = procs.chain()
|
|
|
|
uptime = chain.process('uptime')
|
|
cowsay = chain.process('cowsay')
|
|
|
|
chain.link(uptime.stdout, cowsay.stdin)
|
|
chain.start(wait=True)
|
|
|
|
print cowsay.stdout
|
|
|
|
|
|
# ConnectedProcess
|
|
# ActiveProcess
|
|
# PassiveProcess
|