Send program's serial output to pseudo-terminal used by serial sniffer such as jpnevulator
How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?