Am trying to automate the task of running the dbcheck utility on my servers over the weekend, and saving the output to a text file. I am using the sample script (doc#18200) from the arcserve web site as a guide.
Although the commands work fine, only part of the output goes to the text file. The final line of the output that says whether there were errors or not, prints to the screen and not to the text file.
Here is the batch file:
echo off
REM This will check all of the databases for errors
dbcheck -a -L arcserve;admin;secret asjob >> ARCdblog.txt
dbcheck -a -L arcserve;admin;secret asmedia >> ARCdblog.txt
Any suggestions on how to get the complete output to the text file instead of the screen?
Although the commands work fine, only part of the output goes to the text file. The final line of the output that says whether there were errors or not, prints to the screen and not to the text file.
Here is the batch file:
echo off
REM This will check all of the databases for errors
dbcheck -a -L arcserve;admin;secret asjob >> ARCdblog.txt
dbcheck -a -L arcserve;admin;secret asmedia >> ARCdblog.txt
Any suggestions on how to get the complete output to the text file instead of the screen?