I need to grep the output of a third party program. This program dumps out data but does not terminate without pressing ^c to terminate it.
I am currently searching
Try the following:
expect -c "send \003;"