run batch tcl
Hello Forum,
Good day!
I'm trying to run a TCL file in batch mode using hmbatch.exe. But I'm facing an issue.
The problem is that when ever I open the Hypermesh GUI application I see that a popup window is thrown at me way before the actual HM gets opened.
The popup window says : 'One or more features of the license would expire in #days.'
Because of this issue my TCL script is unable to run in batch mode and terminates the script unexpectedly.
Is there any way to skip that dialogue box so that I can execute my script.
Thanks and regards,
Brahmadev.
Answers
-
Hi brahmadev,
Running hmbatch will not show that warning pop up. You should be creating a .bat file like below:
'C:/Program Files/Altair/2017.3/hm/bin/win64/hmbatch.exe' -tcl 'D:/myscript.tcl'
or if using hw:
'C:/Program Files/Altair/2017.3/hw/bin/win64/hw.exe' -b -clientconfig hwfepre.dat -tcl 'D:/myscript.tcl'
0 -
Altair Forum User said:
Running hmbatch will not show that warning pop up. You should be creating a .bat file like below:
'C:/Program Files/Altair/2017.3/hm/bin/win64/hmbatch.exe' -tcl 'D:/myscript.tcl'
Hello Livil Lyle,
Thanks for the response.
When I try the above it is not creating any popup window as I have mentioned but
it was printing this text : 'One or more features of the license would expire in #days.' in command-line window
and say cannot find the 'stdout' and HM is exiting with error code 1
Also tried with the HW.EXE,for this also the same issue.
0 -
Altair Forum User said:
Hello Livil Lyle,
Thanks for the response.
When I try the above it is not creating any popup window as I have mentioned but
it was printing this text : 'One or more features of the license would expire in #days.' in command-line window
and say cannot find the 'stdout' and HM is exiting with error code 1
Two different things to know:
- The message 'One or more features of the license ....' is just a warning about expiration of your licenses in some days. But for this moment you got valid license.
- When you run in batch mode, instead of output to 'stdout' (command console in Hypermesh session) you can write to a file. Try this method?
So the warning message of license can not be the cause of error of your script.
0 -
Altair Forum User said:
Two different things to know:
- The message 'One or more features of the license ....' is just a warning about expiration of your licenses in some days. But for this moment you got valid license.
- When you run in batch mode, instead of output to 'stdout' (command console in Hypermesh session) you can write to a file. Try this method?
So the warning message of license can not be the cause of error of your script.
coming to the first point what you have said is true... I have checked this, it was just prompting me the message itself and in no way it was interrupting my code.
And to the second mentioned point , i have commented all the puts which were generally printing the data in the command window. But now the problem I 'm facing is : unable to import the *.key file.
how do I import a *.key file in HM in batch mode ?
0 -
If you does not show your script code, nobody could help.
0 -
Hi brahmadev,
I haven't got this error due to the warning message from license while running in batch. Btw, which version of Hypermesh are you using?
This could be mostly because of some other 'puts' or 'parray' statements.
You can put cmd in the end of the .bat file to prevent it from closing.
'C:/Program Files/Altair/2017.3/hm/bin/win64/hmbatch.exe' -tcl 'D:/myscript.tcl' cmd
Share the screenshot.
0 -
Hey people thanks for your kind support and time.
I have found all the bugs.
Most of them were syntactical errors.
Completely lost my patience today but finally made it..
/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
0