Tom Robinson
2011-04-06 20:12:54 UTC
I'm trying to launch an interactive shell I can interact with via it's stdin and stdout. I've tried a number of things involving tty.open() using the returned fd object (either directly or as an argument to Stream or Socket) and the child process object (stdin and stdout are null). I've tried the "login" command as well as "bash" with and without the -i and -l args.
Currently I'm always getting "setsid: Operation not permitted".
Using child_process.spawn() doesn't use a pseudo terminal, so the shell goes into non-interactive mode.
Does anyone know how to do this properly?
Some examples of things I've tried: https://gist.github.com/5aceba736af5f7bb3946
Thanks,
Tom
Currently I'm always getting "setsid: Operation not permitted".
Using child_process.spawn() doesn't use a pseudo terminal, so the shell goes into non-interactive mode.
Does anyone know how to do this properly?
Some examples of things I've tried: https://gist.github.com/5aceba736af5f7bb3946
Thanks,
Tom
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to nodejs+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nodejs-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to nodejs+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.