<div dir="ltr">Excepting this, is there any other better way to launch a program as another user?  I might just use ssh certs and ssh to localhost if not unless any other ideas?</div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Tue, Aug 6, 2013 at 4:22 AM, OvermindDL1 <span dir="ltr"><<a href="mailto:overminddl1@gmail.com" target="_blank">overminddl1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I have been attempting to use ErlExec as I noticed that it had a few new features added six days ago to forward the stdout/stderr to an Erlang PID, however I am having some issue.  The process that erlexec runs occasionally does not die when the Erlang VM dies, thus keeping it and its children running.<div>


<br></div><div>Also I need a way to send commands back to the children, but I am either not seeing a command for that or have not figured out the format to send a message, which is difficult because of the main issue I have, when I have it launch a fairly large server software (that is not a daemon for whatever reason, hence why I am wrapping it), the Erlang shell seems to lose a great deal of input that I type in, only catching from every 1 in 4 I type to 1 in 400 characters I type, and it does not seem to matter based on the speed I hit keys or holding a key or anything of the sort, just purely on keypress down, and it remains like that until I kill the child process that I started through erlexec.</div>


<div><br></div><div>Using the normal Erlang Ports works fine and has no such issues (other than the child not coming down with the VM either and no direct kill command when the child hangs, which it occasionally does, but os:cmd("kill ...") works around that well enough.</div>


<div><br></div><div>Is ErlExec stable enough for high use?  Or am I doing something wrong?</div></div>
</blockquote></div><br></div>