Answer the question
In order to leave comments, you need to log in
How to get the return code of a script running in screen?
You need to run the script through the console through the layer in the form of the screen utility, so that you have access to convenient input and output of commands.
This same script can throw an error and return a return code, but screen always returns code 0 instead of it, which makes it impossible to check who really turned off the script, an error or a person.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question