I want to call the ulimit shell command through a C program. right now, I have:
execlp("ulimit", "ulimit", "-u", "%d", ulimit_a);
It compiles fine, but does not actually edit the user-id max process value when I later check it with ulimit -a (both the dash and bash version). The same was happening with system() as well, yet this seems to be a known issue for system()