On Apr 3, 2008, at 12:36 PM, [EMAIL PROTECTED] wrote: > On Apr 3, 11:39 am, "Timothy Clemans" <[EMAIL PROTECTED]> > wrote: >> So write your script and then do "sage -python blah.py" > > Timothy > > Thanks. My specific "python script" is a full blown python web app/ > server that I want to invoke Sage on behalf of various brower > clients. > > By doing your idea..."sage -python blah.py", it appears Sage will have > control rather than my web app having control of Sage. > > Must/Can I put my entire web app under Sage's wing?.... sage -python > my_big_web_app.py ?
"sage -python" simply runs the version of Python that sage installed, which is the one that has all the Sage libraries imported into it. "sage -python my_big_web_app.py" should work fine. One could also try and communicate with Save via pexpect or http or something like that, but the above is probably by far the easiest solution. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---