I am running salome python scripts on Windows like this
.\run_salome.bat -t script_file.py
Is it possible to redirect the output of the script to a log file, for example something like this
.\run_salome.bat -t script_file.py > file.log
I am running salome python scripts on Windows like this
.\run_salome.bat -t script_file.py
Is it possible to redirect the output of the script to a log file, for example something like this
.\run_salome.bat -t script_file.py > file.log
Yes. Modify run_salome.bat as shown below:
START cmd.exe /C %out_dir_Path%\W64\Python\python3.exe %out_dir_Path%\salome %* ^> log.salome_win.txt 2^>^&1
REM START %out_dir_Path%\W64\Python\python3.exe %out_dir_Path%\salome %*