Created
February 25, 2016 04:59
-
-
Save hlprmnky/b2a67003b22be21013e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import subprocess as sp | |
| proc = sp.Popen(['/usr/local/bin/node', '-p'], stdin=sp.PIPE, stdout=sp.PIPE) | |
| (stdout, stderr) = proc.communicate('4 * 1\n') | |
| print(stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment