471,123 Members | 857 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

calling python from msc.adams

Hello all,

i need to call python from msc.adams.
the syntax is
"mdi -c python exit"
I have created a linux script called "run_python" with this content:
mdi -c python $* exit

then a call this script with a command:

run_python script.py param1 param2 .... paramN

Everything looks OK, but the problem is that also the last "exit"
parameter in run_python script is taken as an input into script.py
together with param1 param2 .... paramN. But I need this exit
parameter not to send to python but to mdi.

Is there anybody who could give me any hint of how to do it?
Thank you very much.
Regards,
Boris

Feb 7 '07 #1
0 889

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

52 posts views Thread by Dick Moores | last post: by
13 posts views Thread by monomaniac21 | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
15 posts views Thread by J. Peng | last post: by
19 posts views Thread by Joseph Turian | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.