How to capture program output from different screen

Viewed 12

I have a simple script that checks some parameters from server, and would also like to include output of the running programs, namely 'ytop' that is running in the screen0.
Is it possible without restarting ytop (as I don't see historic curves than) I've tried

#fbcat /dev/pts/0 >/tmp/test.ppm  

but it didn't work. Idealy would be just a text version, as if I do

#ytop > /tmp/test.txt
#kill -1 `pgrep ytop`

But that gives me fresh start of the ytop and no history

0 Answers
Related