Distributing stdout to multiple targets
My game's logging system supports various targets for log output (only standard console and log-file ATM). These output targets can be enabled concurrently, so output can be distributed all of them at once. I've been starting to implement some more, one being a serial-port output, but I'm not sure its necessary. Shouldn't there be a way to send stdout to both the /dev/tty0 and /dev/ttyS0 at the same time using the shell? Basically I'm hoping there's a method like the redirect operator that only copies the output rather than stealing it completely. Or is there some sort of small program that I can redirect the output to which will then distribute it to multiple targets?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement