Netbeans 8.0.2 上的 ulimit -s

ulimit -s on Netbeans 8.0.2

我想 运行 NetBeans 8.0.2(在 Xubuntu 14.04 上)中的一个 C 程序ulimit -s。我已经在 Re-运行 上尝试过使用参数 编写 ulimit -s 2048; "${OUTPUT_PATH}",但它向我显示此错误:

/bin/sh: 1: exec: ulimit: not found

我不想自己编译程序以便在终端上设置 ulimit。

这看起来不像是 C 题。

无论如何,在 Linux 上,ulimit 不是 系统命令,它是 bash 内置命令。除非 /bin/sh 链接到 bash(通常不是),否则 shell.

不会知道该命令

试试 /bin/bash -c ulimit -s 2048

请注意,这个新的限制只会在这个特定的 shell 中激活 - 一旦你 return 从它开始,你就会看到你以前拥有的任何东西。