I have two processes, let's say Parent and Child. Parent launches the Child and communicates with it through child's stdin and stdout.
Parent <-> Child
These processes use text protocol and I need to investigate it. I would like to create a bash script which will be launched by the Parent instead of child. This script will launch the Child and in addition will dump stdin and stdout streams to a log files.
Parent <-> MyProcess <-> Child
Is there a way in bash to do what I need or do I need to use C?