We have this Windows batch script:
call commands/do-work.cmd | tee my.log
The do-work.cmd includes
impdp user/pw@db directory=mydir dumpfile=my.dmp logfile=logdir:imp.log schemas=a,b,c,c parallel=6
(
echo my.sql
echo exit
) | sqlplus user/pw@db
call mvn clean install
Of these commands the output from sqlplus and mvn is written to my.log but the output of impdp is not. How can I get impdp output into my.log?
Tried using "call" ahead of impdp but the impdp command choked for some reason... complaining about log not found.
Any ideas?