Corrected list checkin sendCmd.
This commit is contained in:
+2
-2
@@ -134,13 +134,13 @@ class Node( object ):
|
|||||||
"""Send a command, followed by a command to echo a sentinel,
|
"""Send a command, followed by a command to echo a sentinel,
|
||||||
and return without waiting for the command to complete."""
|
and return without waiting for the command to complete."""
|
||||||
assert not self.waiting
|
assert not self.waiting
|
||||||
|
if isinstance( cmd, list ):
|
||||||
|
cmd = ' '.join( cmd )
|
||||||
if cmd[ -1 ] == '&':
|
if cmd[ -1 ] == '&':
|
||||||
separator = '&'
|
separator = '&'
|
||||||
cmd = cmd[ :-1 ]
|
cmd = cmd[ :-1 ]
|
||||||
else:
|
else:
|
||||||
separator = ';'
|
separator = ';'
|
||||||
if isinstance( cmd, list ):
|
|
||||||
cmd = ' '.join( cmd )
|
|
||||||
self.write( cmd + separator + ' echo -n "\\0177" \n' )
|
self.write( cmd + separator + ' echo -n "\\0177" \n' )
|
||||||
self.waiting = True
|
self.waiting = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user