I run command in bash:
ulimit my_command
How to use ulimit ( or analog function ) in twisted ?
from twisted.internet import protocol, utils, reactor def r(): utils.getP开发者_如何转开发rocessOutputAndValue('my_command') reactor.callWhenRunning(r) reactor.run()
The resource stdlib module.
精彩评论