Hi there!
I would like to take an actual screenshot as a text file or just a string from a running screen session. I have a poor solution for this, but I want an other performance saver solution.
I'm using many programs in screen sessions with the following command:
Quote:
screen -d -m -S $SCREEN_NAME ./$PROGRAM_TO_RUN
|
in the .screenrc i've put the following:
The problem is that this line makes all screens to make a separated console.log logfile that is allways writing to disk in every 10 minutes and leaves old screen datas so their size is huge as well. I've 70-80 running screen sessions so its eating relatively a lot of performance, but currently thats the only way for me to look inside a screen session (from php page).
I just want to make a script like this:
Quote:
./getscreencontents $SCREEN_NAME
|
Wich would give me back the screenshot as a string with a ~25row backward (and if needed 80col width) console size.
Is there any solution for this? Thanks!