|
@@ -120,7 +120,11 @@ class ObjectSsh(ObjectConnection):
|
|
:param expected: Expected string to stop listening
|
|
:param expected: Expected string to stop listening
|
|
"""
|
|
"""
|
|
self.command_print(command)
|
|
self.command_print(command)
|
|
- command = command.rstrip(self.NEW_LINE_WINDOWS).rstrip(self.NEW_LINE_UNIX)
|
|
|
|
|
|
+ if "\\n" in command and len(command) == 4:
|
|
|
|
+ print "Sendig ENTER \\r\\n"
|
|
|
|
+ command = '\r\n'
|
|
|
|
+ else:
|
|
|
|
+ command = command.rstrip(self.NEW_LINE_WINDOWS).rstrip(self.NEW_LINE_UNIX)
|
|
if not self.command_enable(command) and not self.command_quit(command):
|
|
if not self.command_enable(command) and not self.command_quit(command):
|
|
if command.__len__() > 0:
|
|
if command.__len__() > 0:
|
|
if self.debug:
|
|
if self.debug:
|