1756989 Members
2346 Online
108858 Solutions
New Discussion юеВ

nofile parameter

 
SOLVED
Go to solution
Vic006
Frequent Advisor

nofile parameter

In ksh,i dont see the nofile parameter in ulimit -a command, would it mean that nofile parameter is not defined for a user having ksh shell and defined for a user using /sbin/sh shell?
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: nofile parameter

You have an old version of ksh. The ulimit value is part of the session environment, but ksh simply doesn't report it with the patches you have. Early versions of ksh would not even accept -a as an option. If you want to define the environment with ulimit -n, then run the POSIX shell (/usr/bin/sh) to set/display the ulimit values.


Bill Hassell, sysadmin
Vic006
Frequent Advisor

Re: nofile parameter

Is there any patches that can resolve this?
this is a 11.31 box
Hakki Aydin Ucar
Honored Contributor

Re: nofile parameter

I think, there is no patch to solve this issue due to it is built in in shell.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1173362
Bill Hassell
Honored Contributor

Re: nofile parameter

No, there is no patch to add the number of files to the Korn shell ulimit command. Is there a reason that you can't use the POSIX shell -- it's virtually identical to ksh (and is NOT the Bourne shell, despite the name sh).


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: nofile parameter

>Is there any patches that can resolve this?

What are you trying to do? Reduce the value of maxfiles(5)? Or just look?

>Hakki: there is no patch to solve this issue due to it is builtin in shell.

There is no connection between patches and shell builtins.

>Bill: Is there a reason that you can't use the POSIX shell

There is no need to change to the POSIX shell. You can simply use /usr/bin/ulimit if you want to look at the values. If you want to set them smaller, you can exec sh, then set the value then exec ksh.