I am running a ksh menu script from the command prompt which does a dump, I want the output to show up on the screen as well as redirect to a file.
I have tried running the menu script with | tee /var/log/test.log
I have tried exec $OUTLOG 2&>1 in the ksh script
I have tried exec 2&>1 | tee /var/log/test.log
I have tried adding | tee /var/log/test.log to the dump command in the script.
I can get my script output to both places but it will not redirect the dump logging statements.
I have tried running the menu script with | tee /var/log/test.log
I have tried exec $OUTLOG 2&>1 in the ksh script
I have tried exec 2&>1 | tee /var/log/test.log
I have tried adding | tee /var/log/test.log to the dump command in the script.
I can get my script output to both places but it will not redirect the dump logging statements.