I\'m trying to use Paramiko to connect to a remote host and execute a number of text file substitutions.
i, o, e = client.exec_command(\"perl -p -i -e \'s/
Actually it's quite simple. Just:
stdin, stdout, stderr = client.exec_command(command, get_pty=True)