2
$\begingroup$

I run Mathematica packages in batch mode. I need a log file showing input commands and displaying their output.

I tried these commands

slogf = OpenWrite["logfile.log"] 
AppendTo[$Output, slogf]
AppendTo[$Echo, slogf]

However, 'logfile' contains only some output.

Any hint?

$\endgroup$
1
$\begingroup$

support@wolfram.com clarified me that batch-processing is different from notebook processing. I partially solved my problem by implementing a shell script, which interprets my packages line-by-line. The inconvenience is that you must provide .m files where each line issues a single, complete command. Have a nice work.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.