If you need to catch all the output of an interactive command line in
a file, as ca-wa-config.sh to illustrate it, you can use the tee
command to do so :
# ./ca-wa-config.sh -i console | tee output.txt
and the file output.txt will have all the output you have seen during
the execution of the command ca-wa-config.sh