How do I set a ulimit from inside a Perl script that applies to its children?

后端 未结 4 2016
花落未央
花落未央 2021-01-02 16:00

I have a Perl script that does various installation steps to set up a development box for our company. It runs various shell scripts, some of which crash due to lower than r

4条回答
  •  庸人自扰
    2021-01-02 16:12

    I ended up prepending ulimit -s BLA to the commands that needed it. I specifically didn't want to go with BSD::Resource because it's not a default Perl package and was missing on about half of the existing dev machines. No user interaction was a specific requirement.

提交回复
热议问题