문제

I can run erl from my application and it must be turned on, I really don't want to make win32API Hook + sentMessage to run c(mymodulename), that's why I'm interesting if there some auto-load for modules or I can add it to erl properties ?

thank you.

도움이 되었습니까?

해결책

erl -s module_name will call module_name:start ()

in module_name:start () you can call all what you want

다른 팁

Generally, what you need is to use the OTP (Open Telecom Platform) features. You can define an Application and simplify any start-up procedure.

There's also a nice tool, rebar which will handle every aspect of application management from the start of your project to the deployment. It will generate Erlang/OTP configuration files, base application source files and start-up scripts.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top