Environment
Linux version 2.6
Screen version 4.03.01
I am running an application inside of a screen session. The program prints to STDOUT and reads from STDIN.
What I would like to do:
First, have STDOUT of the screen
tee
'd to a file. For some reason, piping to tee only writes the first few lines, then stops. This maybe because the shell script I am executing runs other applications/shell scripts... Is there a way to connect to the STDOUT of the screen session?
Second, I would like to create a file, like a fifo maybe?, that I can write data do and have it send that data to the STDIN of the screen session.
I am open to other suggestions, such as not using screen
at all and doing something with nohup
and some fifo
's
Basically, I want to background an application and have a file that I can tail for the output and another to redirect input to.