Hello,
I'm trying to get a return value from the command running within screen. I have tried
Code:
screen "some_command ; echo \$? > retval"
but this refuses to write "retval".
Is there any way to pass the return value of a command to the return value of screen, or some other way to get it?
Thanks!