[erlang-questions] os:cmd/1 does not work for ulimit -n

MAthuvathanan Mou. <>
Thu May 14 11:07:57 CEST 2009


Hi all,

Using Linux (RedHat) I wanted to increase number of open files for that
session only (temporarily)

In the erl shell I did

erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.5.5  (abort with ^G)
1> os:cmd('ulimit -n').
"1024\n"
2> os:cmd('ulimit -n 2048').
[]
3> os:cmd('ulimit -n').
"1024\n"
4>

Why did open file not increase here?

Regards,

-- 
Mathuvathanan Mou.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090514/189b3fd4/attachment.html>


More information about the erlang-questions mailing list