user4779202
user4779202

Reputation:

ulimit -s on Netbeans 8.0.2

I want to run a C program in NetBeans 8.0.2 (on Xubuntu 14.04) with ulimit -s set. I've already tried on Re-run with arguments writing ulimit -s 2048; "${OUTPUT_PATH}", but it shows me this error:

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

I don't want to compile the program on my own in order to set ulimit on the terminal.

Upvotes: 1

Views: 204

Answers (1)

mfro
mfro

Reputation: 3335

This doesn't look like a C question.

Anyway, on Linux, ulimitis not a system command, it's a bash builtin. Unless /bin/sh is linked to bash (which it is usually not) the command won't be known to the shell.

try /bin/bash -c ulimit -s 2048 instead.

Note that this new limit will only be active in this particular shell - once you return from it, you'll see whatever you had before.

Upvotes: 1

Related Questions