1826498 Members
2292 Online
109692 Solutions
New Discussion

Re: ulimit

 
SOLVED
Go to solution
Wilfred Chau_1
Respected Contributor

ulimit

#! /usr/bin/sh
ulimit -n 1024
/usr/bin/ulimit -n 1024


If I put the above to a script(posix shell interpreter), what are the differences?

I should say it clearly, the second ulimit didn't set the nofiles limit.
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: ulimit

You are using - #! /usr/bin/sh

so
ulimit -n 1024 is enough.
There is no substitute to HARDWORK
Wilfred Chau_1
Respected Contributor

Re: ulimit

so there is a builtin function within posix shell and another is just an executable?
RAC_1
Honored Contributor

Re: ulimit

that is right.
There is no substitute to HARDWORK
Wilfred Chau_1
Respected Contributor

Re: ulimit

One last question. Is there any documentation on this?
RAC_1
Honored Contributor

Re: ulimit

man sh-posix
man ksh
There is no substitute to HARDWORK
Wilfred Chau_1
Respected Contributor

Re: ulimit

Thanks RAC.