On Tue, Apr 01, 2008 at 06:11:55PM -0700, [EMAIL PROTECTED] wrote:
Python include a module called pexpect that lets you do Expect type stuff from python. I'll have one web app that will talk to one Sage process.
Let me be a little clearer here: stop thinking about Expect. It has nothing to do with the problem you are trying to solve. It is only distracting you. Expect is a utility for running an interactive program programmatically. This is not what you are trying to do. As far as I can tell, your problem is that you want to have a single instance of a program that multiple clients can connect to and do things. There is nothing about Sage that requires interactive use, it just a python library. You're going to need to write something that accepts connections from these clients and makes the sage calls. Expect won't help you here. David -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
