Skip to content

Commit

Permalink
docs: fix exec_command example
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Feb 5, 2024
1 parent e6771ff commit ec44667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_samples/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
if ssh.is_connected:
ssh_channel = ssh.new_channel()
try:
cmd_resp = ssh_channel.write(b'ls')
cmd_resp = ssh_channel.exec_command(b'ls')
print(f'stdout:\n{cmd_resp.stdout}\n')
print(f'stderr:\n{cmd_resp.stderr}\n')
print(f'return code: {cmd_resp.returncode}\n')
Expand Down

0 comments on commit ec44667

Please sign in to comment.