开发者

twisted and ulimit

开发者 https://www.devze.com 2023-03-20 12:08 出处:网络
I run command in bash: ulimit my_command How to use ulimit ( or analog function ) in twisted ? from twisted.internet import protocol, utils, reactor

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消