4
votes
1answer
2k views

ulimit -u gives illegal option error when running from a script but not when from a terminal

I have the following script: #!/bin/sh echo "OUTPUT:" gcc temp.c echo "ACTOP" ulimit -t 1 ulimit -f 1024 ulimit -u 3 ./a.out > out.txt The output I get is OUTPUT: ACTOP ulimit: 7: Illegal ...