<div dir="ltr"><div><div><div>Can any one give the explain about OTP? The application behaviour's call back "start" need args, but when I want start my code as a real application, I only can write "applicaion:start(mycode)", and can not pass any args to mycode. Why otp design like this? When I want start a application as background service from escript, for example:<br><br></div>main([Arg1, Arg2, Arg3]) -><br></div>   application:start(mycode1), %%with Arg1<br>   application:start(mycode2), %%with Arg2<br></div><div>   workcode(Arg3). %%workcode (escript) will run as a daemon, and need service supplied by mycode1 and mycode2.<br><br></div><div>What is the right way to write these code?<br></div>   <br><div><div>    <br></div></div></div>