Last active
August 29, 2015 14:19
-
-
Save moul/f6095744b8c566798c39 to your computer and use it in GitHub Desktop.
node-spawn-stdio.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.stdout.isTTY; | |
require('child_process').spawn('ssh', 'localhost -t -- bash'.split(' '), {stdio: 'inherit'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code redirects:
stdin, stdout and stderr
onnode@0.10.29
stdin and stderr
(no stdout) onnode@0.12.0
if I remove
process.stdout.isTTY
, it works everywhere