By default the CBS command line tool writes user messages to the console.
...
1. You can redirect user messages into a file by means of command logfile.
In the example below user messages are redirected into file useroutput.txt.
Option –m with parameter append has the effect that the output is appended to the file. By default files for user output are overwritten.
:cbs>logfile –f useroutput.txt –m append
If command logfile is used without option –f , the user messages are redirected to the console (again).
It is also possible to determine how detailed user messages should be. For this purpose command verbosity can be used. Usually there is no need to change the default settings.
Besides user messages there are also technical messages like stack traces. Such technical messages are only of interest in case of problems or errors. Therefore such messages are not written to the console.
...
1. Specifying to which file technical messages shall be written use the command tracefile:
:cbs>tracefile –f tracemsg.txt
In this context option –m (which is not mandatory) can be used to specify how detailed trace messages should be.
To get more information on the syntax of the above commands use the online help: :cbs>help logfile; help tracefile; help verbosity