You can use ulimit to expand the limit.

default soft limit is 256:
ksh93 -c 'while redirect {x}< "/etc/profile" ; do print $x ; done
2>&1' | tail -3
254
255
ksh93[1]: /etc/profile: cannot open [Too many open files]

Olga

On Wed, Mar 3, 2010 at 8:36 PM,  <Casper.Dik at sun.com> wrote:
>
>>
>>On Wed, 3 Mar 2010 11:41:50 -0600 Nicolas Williams wrote:
>>> Is ksh93's OPEN_MAX (max open fildes) really 256 on Solaris?
>>
>>ksh builtin getconf(1) winds its way down to sysconf(SC_OPEN_MAX)
>>which is is sysconf(5) verified by
>>       getconf -t | grep OPEN_MAX
>>you can do this directly from the ksh builtin
>>       getconf 'SC(5)'
>>on my sol10.sun4 I get 256
>>same value (just as a double check) for
>>       ulimit -n
>>so I believe the question is
>>
>>Is Solaris's OPEN_MAX (max open fildes) really 256 on my machine?
>
>
> It's the default soft limit.
>
> Casper
>
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska at gmail.com   \-`\-'----.
 `'-..-| /     Solaris/BSD//C/C++ programmer   \ |-..-'`
      /\/\                                     /\/\
      `--`                                      `--`

Reply via email to