[sysadmin-bin: 1/2] Don't wait for more output after the relevant command is executed.



commit bd4b9fa7a2cd4065a622eb0e8160a7b39a331f7b
Author: Andrea Veri <av gnome org>
Date:   Thu Sep 12 14:47:03 2013 +0200

    Don't wait for more output after the relevant command is executed.

 prosody.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/prosody.py b/prosody.py
index 175a858..7483df3 100755
--- a/prosody.py
+++ b/prosody.py
@@ -24,6 +24,7 @@ def create_prosody_account():
     child.sendline ('%s' % random_password)
     child.expect ('Retype new password: ')
     child.sendline ('%s' % random_password)
+    child.expect(pexpect.EOF)
     child.close()
 
     if child.exitstatus == 1:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]