bdfy
bdfy

Reputation: 119

twisted and ulimit

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.getProcessOutputAndValue('my_command')

reactor.callWhenRunning(r)
reactor.run()

Upvotes: 1

Views: 354

Answers (1)

Jean-Paul Calderone
Jean-Paul Calderone

Reputation: 48325

The resource stdlib module.

Upvotes: 1

Related Questions