Hi everyone

I am using subprocess module. I called external script by using module subprocess.

Now I want to use the output of the external program back in python script.

Can anyone help me on this? any good tutorial?

I tried doug hellmans (http://blog.doughellmann.com) blog

small example would be great.

what I am doing is this -

out = subprocess.call('Rscript script.R --args -arg1 arg2',shell=True)

Can i treat out as a output of script.R anyway?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.