[ts-gen] redirecting shim output to python script
Mike Thornton
endoscope at gmail.com
Wed May 6 03:54:02 EDT 2009
Hi folks,
I am having a little difficulty in redirecting the shim output to a python
subprocess. From print statements, I can see that the shim output is not
making it into the python script. How do I modify the shim call for proper
integration? Also, is the following call correct so that the shim
input/output is logged in a file? What does the 'once' statement -- copied
from /exs/kill.rb -- do?
Here is the relevant line from the python class:
self.shimProcess = subprocess.Popen('/usr/local/shim --risk cout save once',
bufsize=0, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
Thx.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.trading-shim.org/pipermail/ts-general/attachments/20090506/e68eef5b/attachment.html
More information about the ts-general
mailing list