Answer the question
In order to leave comments, you need to log in
How to parse screenlog without a file?
Hello.
All the time, I was parsing the console of various servers running in screen from the screenlog.0 log file, but I thought maybe there is an alternative for screen that can transfer the text of the process output, for example, over a socket, because it would be much faster. What if this can be implemented by screen itself...
screen -AmdS L srv1 java -jar core.jar
L - writes a log file. I can’t change core.jar itself (in order to transfer my own logs, over the socket), because there are many variations of it, and changing everything is somehow not rational.
I have a debian8 distribution.
Answer the question
In order to leave comments, you need to log in
You can read from the log and redirect through the network:
nc -l -p -c "tail -f file.log"
Or even just
nc -l -p -e
./myjar.jar tried.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question