acuSolve and shell script
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
-
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.
1
Answers
-
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.
1 -
acupro_21778 said:
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?
0 -
Prabin Pradhananga_20428 said:
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.
0