"优雅"用于查找linux用户UID的erlang解决方案

时间:2014-09-15 18:18:22

标签: erlang

我正在寻找在erlang(Erlang / OTP 17)中为Linux用户查找UID的任何替代方法。

我目前正在调用shell并使用' id -u $ USER'确定它。

感谢。

1 个答案:

答案 0 :(得分:0)

我认为在erlang OTP lib中没有这样的功能。 但你可以参考一些开源的lib: https://github.com/gebi/jungerl/blob/master/lib/posix_drv/README

https://github.com/sergey-miryanov/erlang-pwd

相关问题