use os.pipe for stdin pipe to prevent echo, use pty for stdout stderr pipe to disable block buffer