Hi guys.

Im writing a program..

And now i have come to a state that i need to get information from a program running in a screen.

The screens name is:
test_program

I know: This can be accessed with:
screen -r test_program

And detached with [ctrl]+A+D


BUT , the problem is that my program will need to get into this screen with 1 single command , and detach it when it has got the content of the screen.

So , are there a command (linux type) i can use to get the content of this screen i got ?