On Tue, Apr 01, 2008 at 09:08:58PM -0700, [EMAIL PROTECTED] wrote:
On Tue, Apr 01, 2008 at 06:23:00PM -0700, David Brown wrote:
My question is why are you even trying to run expect?  Sage is written in
Python, just call it directly.  If you need a persistent instance, either
do some kind of cgi-persistence thing, or create a socket and listen.  All
will be much easiser than trying to shoehorn expect into it.  Expect is for
instances where you don't have an easier way to do it.

OK I see what you are saying.  I didn't even think to consider if Sage
allowed you to import some module and call functions.

Even if it didn't, you could just run it and feed commands to it and take
its output.  Expect is for things that require interaction.

Either case doesn't solve your real problem, which is having a persistent
sage session with cgi scripts that exit each time.

David


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to