Ticket #608: proctest.py

File proctest.py, 238 bytes (added by lzfnk, 17 years ago)
Line 
1# Test getProcessOutput
2
3import sys
4from twisted.internet import reactor, utils
5
6def stopme(x):
7    reactor.stop()
8
9d = utils.getProcessOutput(sys.argv[1], sys.argv[2:])
10d.addCallback(sys.stdout.write)
11d.addCallback(stopme)
12reactor.run()