Advertisement

Distributing stdout to multiple targets

Started by October 01, 2005 03:26 PM
1 comment, last by dcosborn 18 years, 11 months ago
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?
try 'man tee'
Advertisement
Thanks, that's exactly what I'm looking for.

This topic is closed to new replies.

Advertisement