ra’s avatarra’s Twitter Archive—№ 24,822

    1. n = subprocess("node") n.write("4 * 5") n.read() # "> 4 * 5\n20\n> " n.write("console.log('hello')") n.read() #"console.log('hello')\nhello"
  1. …in reply to @ra
    does such a thing exist? does the subprocess/popen module do this?