0

As the title suggests, I have a python script to run when logging in with ssh. The problem is that in the script there is a "while" loop with "raw_input" inside which must read a keyboard value. If I run the script normally everything works ... if instead I run it ssh after logging in, it enters an infinite loop ... how is it possible !?

while True: try: value=raw_input('insert number: ") ..... except: ...... 

This is part of my code....only on ssh not work. If launched normally, everything works properly

3
  • 1
    Please edit your question to include this script or at least the relevant parts of it. And show how you're running ssh when this script is invoked.
    – Kenster
    CommentedJan 7, 2020 at 19:26
  • What you show in your question is an infinite loop that will never exit. Maybe add some code to show your exit condition?
    – larsks
    CommentedJan 7, 2020 at 19:39
  • this is just a "sketch". The complete code also contains "exits" ... but this is not the point since the script normally WORKS ... only via ssh no ...
    – user377583
    CommentedJan 7, 2020 at 20:16

0

You must log in to answer this question.