How to properly handle situation when user wants to start over ssh new terminal session - executing exec_command('bash')
. Currently while doing it this way, function hangs out.
Asked
Active
Viewed 872 times
1

mkorszun
- 4,461
- 6
- 28
- 43
-
Are you looking for an interactive terminal session over Paramiko? – iruvar Oct 18 '12 at 17:56
-
basically yes, but i would like handle it in a smart way. I mean whenever user prompts non-interactive command, execute it, return result and close the session, otherwise follow user interaction. And of course handle special case which seems to be execution of "bash" command – mkorszun Oct 18 '12 at 18:03
-
see if this helps http://stackoverflow.com/questions/373639/running-interactive-commands-in-paramiko – iruvar Oct 18 '12 at 18:08