<div dir="ltr">I have a windows app (also on R15) and this is the shortcut that launches it:<div><br></div><div>Target: "C:\Program Files (x86)\myprogram\erlang\erts\bin\werl.exe" -detached -smp enable -run bootstrap"<br><br>Start in: "C:\Program Files (x86)\myprogram\erlang\erts\bin"</div><div><br></div><div>So, try changing the current directory first to erts/bin before running detached.</div><div><br></div><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, May 17, 2016 at 6:47 PM John R. Ashmun <<a href="mailto:john.ashmun@gmail.com">john.ashmun@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Perhaps my subject is not quite the correct question. Here's my context:<br><br></div>I'm beginning to recreate in Erlang on Microsoft Windows 10 a public domain program I used to enjoy on my Commodore Amiga: mATC was a game in which the user acted as a military Air Traffic Controller. I am using a wx window to draw the player's map with aircraft data blocks overlaid. I don't have a use for the initial window that opens when werl is started.<br><br><a href="http://erlang.org/doc/man/werl.html" target="_blank">http://erlang.org/doc/man/werl.html</a><br><br></div>says, in part, "All flags
except <span>-oldshell</span> work as they do for
the <span><a href="http://erlang.org/doc/man/erl.html" target="_blank">erl</a></span> command." I don't have a UNIX-y system available to me to learn how they work for the erl command. (The erl command as an interactive program is iffy in a Windows Command Prompt window.)<br><br></div>In particular, the description of -detached in<br><br><a href="http://erlang.org/doc/man/erl.html" target="_blank">http://erlang.org/doc/man/erl.html</a><br><br></div>would seem to be what I want:<br><br>"Starts the Erlang runtime system detached from the system
console. Useful for running daemons and backgrounds processes. Implies
<span>-noinput</span>."<br><br></div>I want the Erlang VM to run my game without an Erlang shell's having opened a window, and I want my game to be in control of its wx window.<br><br></div>Further, following what I think I learned from "Erlang and OTP in Action", I have an OTP application being started by a boot file created from a .rel file. All of this is in the setting of an ancient Erlang release: R15B.<br><br></div>If I use this Command Prompt batch file, mATC.bat:<br><br></div>werl -pa ebin -pa mATC_app\ebin -detached -boot mATC -config sys<br><br></div>a Windows error message window appears that says:<br><br></div>"Failed to execute C:\Program Files\erl5.9\erts5.9\bin\beam.smp.dll<br></div> The system cannot find the file specified."<br><br></div>The DLL is actually present at that location, and of course everything runs well when I don't use -detached.<br><div><div><div><div><div><div><div><div><div><br></div><div>Please advise.<br><br></div><div>Regards,<br></div><div>John Ashmun<br><br>
</div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div></div>