Patrick-Dussault

Interactive Command line output in a file

Blog Post created by Patrick-Dussault Employee on Aug 30, 2017

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

Outcomes