Home python How to prevent Process finished with exit code 0? (Python)

How to prevent Process finished with exit code 0? (Python)

Author

Date

Category

Hello. If I run the script without a function using the paramiko library, then everything is ok, but if I use it to connect to the server via SSH and execute a command remotely, then the script runs, but ends: Process finished with exit code 0.

How do I prevent a script from terminating?


Answer 1, authority 100%

exit code 0 means that there were no errors and the script completely executed and exited on its own. Accordingly, this message should not be prevented, it indicates that everything worked fine.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions