2

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?

MarcoB
  • 67,153
  • 18
  • 91
  • 189

1 Answers1

1

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.