It amazes me how often a question about some capability of node is answered with one or more spot-on solutions. I guess lampp can offer the same convenience but node is only a few years old.
On Fri, Sep 21, 2012 at 6:11 AM, Ben Noordhuis <[email protected]> wrote: > On Fri, Sep 21, 2012 at 12:40 PM, James Coglan <[email protected]> wrote: > > Hi all, > > > > I'd like to have my command-line Node program invoke another interactive > > shell program (in this case w3m, but think vim, less, and so on) as a > child > > process so that it appears in my terminal. I thought I could do that like > > this: > > > > require('child_process').execFile('w3m', ['http://www.google.com'], > {stdio: > > 'inherit'}) > > > > But it turns out that doesn't work. Is this possible? > > Yes, but not with the child_process module (not reliably anyway). Try > https://github.com/chjj/pty.js > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
