erlang 常用函数

os:getpid() 获得erl.exe的进程表示符

application:start(appname,    Type), Type == permanent 表示一个应用死了,其它应用全部死掉,然后整个节点死掉; Type == transient 表示只有在应用异常死亡的情况下,类似于permanent,正常死亡,类似于temporary;Type == temporary

                                                     都不重启

 filelib:is_regular(FileName).     判断文件是否存在,存在true,不存在false

posted @ 2013-11-26 17:34  wangjunshusheng  阅读(413)  评论(0编辑  收藏  举报