maybe try this?
when thinking outside the screen program
1. start up screen with an expectation there's more to do when screen
quits, like check a file with a result
screen && cat /tmp/exit_code# if your intent is exit screen normally,
the use AND "&&"... otherise if your screen session is
On 2024-05-07 10:24:49, Marek Lukács spake thus:
Is it possible to capture last exit status code after screen finished (eg.
environment variable $SCREEN_EXIT_CODE), or copy last status code to screen'
s exit status code, so I can check it using $? ?
Hi Marek,
I'm not aware of any way to