If you attempt to pipe commands in to bindctl and the session is not interactive (i.e it is not a TTY) then do not attempt to read the user name and password.
@@ -272,6 +272,11 @@ WARNING: The Python readline module isn't available, so some command line
else:
self._print('Login failed: either the user name or password is '
'invalid.\n')
+
+ # If this was not an interactive session do not prompt for login info.
+ if not sys.stdin.isatty():
+ return False
while True:
count = count + 1
if count > 3: