acuSolve and shell script

Unknown
edited August 2022 in Community Q&A

Hi experts,

I want to invoke acusolve in a shell script in my local computer. I usually invoke it using acuRun command in my terminal, but I want to know what additional commands are necessary if I want to run the same using shell script instead of directly running in terminal.

So, I would write shell script>>open terminal>>invoke shell script>>which in turns invoke acuSolve

 

Thanks!!!

Best Answer

  • acupro
    acupro
    Altair Employee
    edited August 2022 Answer ✓

    Are you wanting to embed starting the AcuSolve job within another script?  Is this script for running on Windows - or Linux?

    If on Linux, and you run your script from the problem directory (where the .inp file and mesh directory reside) you should be able to use the same

    acuRun

    command (plus other options) as if you were running from the terminal itself.

    If on Windows, it's a little more involved - using the windows 'call' command - and launch the script from the AcuSolve Command Prompt, rather than a standard Windows Command Prompt.

Answers

  • acupro
    acupro
    Altair Employee
    edited August 2022 Answer ✓

    Are you wanting to embed starting the AcuSolve job within another script?  Is this script for running on Windows - or Linux?

    If on Linux, and you run your script from the problem directory (where the .inp file and mesh directory reside) you should be able to use the same

    acuRun

    command (plus other options) as if you were running from the terminal itself.

    If on Windows, it's a little more involved - using the windows 'call' command - and launch the script from the AcuSolve Command Prompt, rather than a standard Windows Command Prompt.

  • Unknown
    edited August 2022

    Are you wanting to embed starting the AcuSolve job within another script?  Is this script for running on Windows - or Linux?

    If on Linux, and you run your script from the problem directory (where the .inp file and mesh directory reside) you should be able to use the same

    acuRun

    command (plus other options) as if you were running from the terminal itself.

    If on Windows, it's a little more involved - using the windows 'call' command - and launch the script from the AcuSolve Command Prompt, rather than a standard Windows Command Prompt.

    Thanks! I am running a linux machine. One more question: can I run acuRun command from python script instead of shell script?

  • acupro
    acupro
    Altair Employee
    edited August 2022

    Thanks! I am running a linux machine. One more question: can I run acuRun command from python script instead of shell script?

    I would assume so.  Best thing to do is try it and see if it works.