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

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

How do I prevent the script from shutting down?

Author: Василий Пупкен, 2017-10-31

1 answers

exit code 0 indicates that there were no errors and the script was fully executed and terminated on its own. Accordingly, this message does not need to be prevented, it indicates that everything worked fine.

 1
Author: Xander, 2017-10-31 05:22:35