Closed JontomXire closed 7 years ago
If I try to execute the following in an SSH shell:
result = shell.run(['sh', '-c', 'test', '1', '-eq', '1', '&&', 'echo', 'Hello world'], allow_error=True)
I get nothing back. Because 1==1 I should get the output from 'echo "Hello world"' back.
I'm being dense. Sorry. I didn't notice in your example that the command needs to be a single string when using "sh -c".
If I try to execute the following in an SSH shell:
result = shell.run(['sh', '-c', 'test', '1', '-eq', '1', '&&', 'echo', 'Hello world'], allow_error=True)
I get nothing back. Because 1==1 I should get the output from 'echo "Hello world"' back.