Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to open interactive terminal apps with child_process?

Received: by 10.58.145.167 with SMTP id sv7mr757230veb.11.1348224023306;
        Fri, 21 Sep 2012 03:40:23 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.52.92.207 with SMTP id co15ls2478004vdb.5.gmail; Fri, 21 Sep
 2012 03:40:14 -0700 (PDT)
Received: by 10.52.64.141 with SMTP id o13mr315477vds.1.1348224014934;
        Fri, 21 Sep 2012 03:40:14 -0700 (PDT)
Received: by 10.52.64.141 with SMTP id o13mr315476vds.1.1348224014920;
        Fri, 21 Sep 2012 03:40:14 -0700 (PDT)
Return-Path: <jcog...@gmail.com>
Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46])
        by gmr-mx.google.com with ESMTPS id ef10si467691vdb.3.2012.09.21.03.40.14
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 21 Sep 2012 03:40:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of jcog...@gmail.com designates 209.85.212.46 as permitted sender) client-ip=209.85.212.46;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jcog...@gmail.com designates 209.85.212.46 as permitted sender) smtp.mail=jcog...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-vb0-f46.google.com with SMTP id ff1so4248839vbb.33
        for <nodejs@googlegroups.com>; Fri, 21 Sep 2012 03:40:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=nt/9kTYea/hUsQxB0KmFnKaSVIk3gKSXD/TNaDf0zvQ=;
        b=Bxko3PfozZXmPiPeSV/3WPl9KoUAapg3uCswK8fXElveyRB100sif6rPg6w7W0TEHS
         HX0c/FYvXuWw1hly0WG6DyNChZF6MfSi0NcXOHd2n27DwbIBOR5GIeQRvwyjFQ6WphBQ
         Ko+oTqVt0rtQrd0qmcHrkF+djT4XHbjCwWNe2EjOu6souzdRCPBgPP7ClZh8oKVwUCGT
         AsBhFMDuHTOGkgpkeOlpQzt5EjRQpe53x1NztQJhV+fF5ronaN9dkiJTn2fTVyIwlj0d
         P42yfTwBFlH9Kf9jNCyCQ3gO2wH6TDiG5iJ0oQg6U8dmrD0zSMQ5RKbtm3cOn9fQ+NFF
         vn2Q==
MIME-Version: 1.0
Received: by 10.52.93.1 with SMTP id cq1mr2204554vdb.125.1348224014696; Fri,
 21 Sep 2012 03:40:14 -0700 (PDT)
Received: by 10.58.211.6 with HTTP; Fri, 21 Sep 2012 03:40:14 -0700 (PDT)
Date: Fri, 21 Sep 2012 12:40:14 +0200
Message-ID: <CALm1c-EFBrh6zQYjcmWEWdxS7sf9smoG1-11-XzEjGEQUAj...@mail.gmail.com>
Subject: How to open interactive terminal apps with child_process?
From: James Coglan <jcog...@gmail.com>
To: Node list <nodejs@googlegroups.com>
Content-Type: multipart/alternative; boundary=20cf307cfbbc79428504ca33dd03

--20cf307cfbbc79428504ca33dd03
Content-Type: text/plain; charset=ISO-8859-1

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?

-- 
James Coglan
http://jcoglan.com
+44 (0) 7771512510

--20cf307cfbbc79428504ca33dd03
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,<div><br></div><div>I&#39;d like to have my command-line Node progra=
m 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:</div>
<div><br></div><div>require(&#39;child_process&#39;).execFile(&#39;w3m&#39;=
, [&#39;<a href=3D"http://www.google.com">http://www.google.com</a>&#39;], =
{stdio: &#39;inherit&#39;})</div><div><br></div><div>But it turns out that =
doesn&#39;t work. Is this possible?<br clear=3D"all">
<div><br></div>-- <br>James Coglan<br><a href=3D"http://jcoglan.com">http:/=
/jcoglan.com</a><br>+44 (0) 7771512510<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>

--20cf307cfbbc79428504ca33dd03--