I have different code in my tests that needs to execute based on whether or not a plugin is loaded.
If the plugin is loaded, it should redirect all the output from the program to a named pipe so the plugin can capture it for logging. If it is not loaded, then the program should open a terminal window with a 'tail -f' on the named pipe so that I can view the output.
Alternatively, a way to read from the pipe and put the read data back into it or into a new pipe would solve my problem. I've tried tee-ing the output to another pipe, but it didn't seem to work, no data would be read from the second pipe. This, of course, could have been user error.
Thanks!