How to increase ulimit max open files, permanently?
I have a shell script that needs to be able to receive hundreds of incoming socket connections. The default max of open files is 256. Strangely, if I run:
sudo ulimit -n 800
...ulimit -a still shows just 256 max open files. If I become root (sudo su), then I can increase the max files to 800, but that setting only remains while I'm root user.
Anyone know how to increase the max open files setting for my regular user name, as I run scripts from the Terminal bash shell?
...Rene
sudo ulimit -n 800
...ulimit -a still shows just 256 max open files. If I become root (sudo su), then I can increase the max files to 800, but that setting only remains while I'm root user.
Anyone know how to increase the max open files setting for my regular user name, as I run scripts from the Terminal bash shell?
...Rene
MacBook Pro, Mac OS X (10.6.1)