On 27 December 2015 at 18:59, Laurent Delacroix <laur...@krutt.org> wrote: > On 26/12/15 10:41, Pol Hallen wrote: >> >> How can I execute a local command (like ls or similar) and show output >> via browser? >> > > Either you use a proper web framework (Flask, Bottle, Django in order of > complexity) or you set up a web server with FastCGI support (e.g. nginx) > and run a WSGI application behind it. > > Useful link: > https://docs.python.org/2/howto/webservers.html#setting-up-fastcgi > > Lau > -- > https://mail.python.org/mailman/listinfo/python-list
Better yet, use a real WSGI server like uWSGI and its associated nginx module. (there are plenty of tutorials around the Internet) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list