I have my minecraft server.jar
application that prints a log to the terminal. While I know you can log output from a specific shell by using the script
command, that seems a bit heavy for my application. I want to scan each line of the shell and check if it's useful before grabbing it. What c++ functions are able to do this?
Even better, if I could start the program only when I've triggered my server.jar
file that'd be really efficient.
Here is potentially relevant information on reading through a pipeline.