开发者

Running a process remotely using Python

Is it possible to run a System process remotely , i.e. in the background using python?

For e.g. I ave Scilab installed on my system, now I do something like this

                 xx= os.system('scilab-adv-cli')

in the python console. But this fires up开发者_开发知识库 an actual scilab command line interface. Though I need something like this :

                  xx.add(1,2)

here is some function predefined in scilab module whic on invoking should return 3 here. CAn this be done?


If this is limited to Scilib, check out http://forge.scilab.org/index.php/p/sciscipy/

which should let you do everything scilib can do from within python.

Also, while this doesn't solve your problem, you should considering using subprocess instead of os.system

http://docs.python.org/library/subprocess.html#module-subprocess

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜