locked
Incorrect parsing of Command Line in task? RRS feed

  • Question

  • So this works from the command line per all the rules for cmd.exe

    D:\v5r25\win_b64\code\bin\CATSTART.exe -env "TEST" -direnv "D:\CATIA\CATEnv" -run "CAAProgram.exe \"\\Server1\My Directory\MyProduct.CATProduct\" \"C:\My Temp\Test.xml\""

    But it does not work from HPC command line.

    What gets executed on the nodes broken at the \\Server1\My and Directory\MyProduct.CATProduct.

    So the \" and the closing \" don't seem to be take into consideration.

    So what is the special sauce to get this to work the same as it does in a Script.cmd file?


    robert jackson

    Monday, October 30, 2017 10:48 PM

All replies

  • Solved by the old triple quote .... what a waste of an afternoon .... Grrrrrrr.

    D:\v5r25\win_b64\code\bin\CATSTART.exe -env "TEST" -direnv "D:\CATIA\CATEnv" -run "CAAProgram.exe \"\"\"\\Server1\My Directory\MyProduct.CATProduct\"\"\" \"\"\"C:\My Temp\Test.xml\"\"\"\""


    robert jackson

    Monday, October 30, 2017 11:24 PM
  • next time you can try put echo before your commandline and check the output so that you know what commandline is exactly get run on the compute node

    Qiufang Shi

    Tuesday, October 31, 2017 4:04 AM