How to make a call to an executable from Python script?
Posted
by fx
on Stack Overflow
See other posts from Stack Overflow
or by fx
Published on 2010-03-18T22:06:07Z
Indexed on
2010/03/18
22:21 UTC
Read the original article
Hit count: 142
I need to execute this script from my Python script.
Is it possible? The script generate some outputs with some files being written. How do I access these files? I have tried with subprocess call function but without success.
fx@fx-ubuntu:~/Documents/projects/foo$ bin/bar -c somefile.xml -d text.txt -r aString -f anotherString >output
The application "bar" also references to some libraries, it also creates some files besides the output. How do I get access to these files? Just by using open()?
Thank you,
© Stack Overflow or respective owner