So I have a script that starts a service and tails the log file until the service finally initializes. I used the following to achieve this: Linux: Block until a string is matched in a file ("tail + grep with blocking")
Now, I'd like my user to see the output of the tailed file when the tailing begins, so they can track the progress of the service. I know a few ways to ago about this, such as spawning a new window and piping all tail output to the new handle. This only works when the user is at the actual workstation but the script interacts remotely via SSH. So this won't work in my case.
I'm hoping someone here knows how to pipe the tail to the running window, meanwhile keeping the output of the tailed file to just a single line. I want to avoid spewing all the output to the scripts screen.
If I'm being too vague, let me know. I can post a screenshot to help better explain what I am trying to achieve.
Thank you