You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/advanced.rst
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,9 +192,6 @@ In some cases, such as when the remote command never terminates unless interrupt
192
192
193
193
Without a PTY, the ``join`` will complete but the remote process will be left running as per SSH protocol specifications.
194
194
195
-
Output reading and Timeouts
196
-
______________________________
197
-
198
195
Furthermore, once reading output has timed out, it is necessary to restart the output generators as by Python design they only iterate once. This can be done as follows:
199
196
200
197
.. code-block:: python
@@ -283,18 +280,18 @@ Command can also have multiple arguments to be substituted.
283
280
.. code-block:: python
284
281
285
282
output = client.run_command('%s%s',
286
-
host_args=(('host1_cmd1', 'host1_cmd2'),
287
-
('host2_cmd1', 'host2_cmd2'),
288
-
('host3_cmd1', 'host3_cmd2'),))
283
+
host_args=(('host1_cmd1', 'host1_cmd2'),
284
+
('host2_cmd1', 'host2_cmd2'),
285
+
('host3_cmd1', 'host3_cmd2'),))
289
286
290
287
A list of dictionaries can also be used as ``host_args`` for named argument substitution.
291
288
292
289
In the following example, first host in host list will use cmd ``host-index-0``, second host ``host-index-1`` and so on.
0 commit comments