Suppress warnings and errors in command line

krowi2
2021-10-27
2021-10-27
  • krowi2 - 2021-10-27

    Hello,

    For our automatic building process we finally moved onto automatic building with Codesys. Opening a project, building it and generating a boot application all works. The only "drawback" for us at this point is that all the compile errors and warnings show up in the command line window.

    Is there a way to suppress these messages and pass them to an external file?

     
  • i-campbell

    i-campbell - 2021-10-27

    Something like

    CODESYS.EXE --profile="" > standardout.txt 2> standarderr.txt
    
     
  • krowi2 - 2021-10-27

    I'm still getting them print to my command line and nothing to the files:

    This is the bat file content:

    start /wait "" "C:\Program Files\CODESYS 3.5.17.10\CODESYS\Common\CODESYS.exe" --profile="CODESYS V3.5 SP17 Patch 1" --noUI --runscript="D:\test.py" > standardout.txt 2> standarderr.txt
    

    Just calling the following bit doesn't print anything to the command line and everything to the files:

    "C:\Program Files\CODESYS 3.5.17.10\CODESYS\Common\CODESYS.exe" --profile="CODESYS V3.5 SP17 Patch 1" --noUI --runscript="D:\test.py" > standardout.txt 2> standarderr.txt
    

    I think this might be the solution:

    "C:\Program Files\CODESYS 3.5.17.10\CODESYS\Common\CODESYS.exe" --profile="CODESYS V3.5 SP17 Patch 1" --noUI --runscript="D:\test.py" 2> standarderr.txt
    
     

    Last edit: krowi2 2021-10-27

Log in to post a comment.