开发者

Run executable from script with conditions python2.6

I am looking for a way to execute ABAQUS (a program) automatically from a python script with certain conditions. In Linux's command (terminal) line I type in

abq683 cae script=XX.py

and it will have ABAQUS run the script. I am aware of开发者_StackOverflow the python module 'subprocess' and it can run the basic program, which is the 'abq683' part of the command, however I cannot seem to find a way to have the other conditions run with it.

I am wondering if there is a way to run the full abq683 cae script=XX.py command automatically from a python text file.

Perhaps there is a way to print characters to the terminal window's active line and run them?

I am using Python2.6 on a linux machine Thank you for any help you may offer.


import subprocess
retcode = subprocess.call(['abq684', 'cae', 'script=XX.py'])
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜