CGI

Chris Warrick kwpolska at gmail.com
Sun Dec 27 15:01:15 EST 2015


On 27 December 2015 at 18:59, Laurent Delacroix <laurent at 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



More information about the Python-list mailing list