I agree that using the notebook is probably a bad idea. Have you tried using sage's -c flag? according to the command line help "-c <cmd> -- Evaluates cmd as sage code". In addition if you are using python you could use the subprocess module. I'm thinking something like:
check_output(['/SAGEPATH/sage', '-c ' + 'your command']) haven't tried it myself though.. On Saturday, July 12, 2014 5:10:09 PM UTC-4, Jole Bradbury wrote: > > Ran > > sage: import sagenb.notebook.notebook_object as nb > > sage: nb.notebook(directory="mynotebook") > > And got the server running, I can log in on localhost. > > > > My problem is that for the past few weeks all I've been trying to do is > set up a server *where data can be sent and evaluated and sent back,* my > users will be sending requests from a separate site. I have been trying curl > --data x http://localhost:8080/home/admin/0/ > > > But keep getting <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> > > <title>405 Method Not Allowed</title> > > <h1>Method Not Allowed</h1> > > <p>The method is not allowed for the requested URL.</p> > > > > > I really need to just send an http request and get it evaluated and get an > httpresponse. Can someone please help with that? > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.