F
F
foul112020-07-09 18:10:09
linux
foul11, 2020-07-09 18:10:09

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

1 answer(s)
S
Saboteur, 2020-07-10
@foul11

save the return code to a file and read it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question