Dear sesamers,
I was reading about the web capabilites of Sesame. The documentation says that to run Sesame as a web server (-web_server switch), one needs to also have a Sesame Client load up a sesame application. I don't know if this is possible in a linux hosting environement ?
I tried with the API to no avail. I wrote a 2 lines python script that would just import the sesame python api and connect to the server and keep the connxion open (the program is running in an interactive interpreter that stays open), but the http://localhost:80 still shows "impossible to connect" message on my browser, and according to lsof -i:80, the server isn't listening on port 80.
Here's how I launch the server
./sesame-2017 -server localhost -web_server 80 -daemon
Here's proof that port 80 isn't open
root@karabeela ~ # lsof -i:80
root@karabeela ~ #
Here's simple python code that connets to the server
import sesame_python_api as sesame
cnx = sesame.SesameConnect("localhost")
if not cnx:
print "no cnx"
exit(1)
It is run with ipython -i switch, like this :
ipython -i sesameconnect.py
Python 2.7.1 (r271:86832, Jul 9 2012, 23:43:17)
Type "copyright", "credits" or "license" for more information.
IPython 0.10.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]:
After a while, the console where the server is launched shows this message
Communications error with socket set notice.
I don't know if the message is relevant or not.
Thanks for any feedback