psspy report output to pipe

asked 2015-02-09 12:59:58 -0500

JDRobers gravatar image

Hello everyone,

In an effort to save time and disk I/O, I am trying to get PSSE to redirect its report output to a named pipe. I am having a great deal of trouble with this and was hoping you could help.

In the past, I have used psspy.report_output to redirect PSSE output for functions like DIFF to a specific file, which I would later read in with a different part of my program. However, this uses a lot of I/O, and therefore time.

The problem is that os.pipe generates a set of integers that represent addresses for reading and writing, and psspy.report_output requires a string for the destination file/device. If I try to wrap the read and write ends of the pipe with file descriptors, both wind up being interpreted as read-only files, and as a result PSSE does not actually write to the pipe.

Are there any API calls that would allow me to do this the way I want to?

edit retag flag offensive close merge delete