Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100911

Re: CGI

From Laurent Delacroix <laurent@krutt.org>
Newsgroups comp.lang.python
Subject Re: CGI
Date 2015-12-27 18:59 +0100
Organization Aioe.org NNTP Server
Message-ID <n5p8ue$ajo$1@speranza.aioe.org> (permalink)
References <mailman.31.1451231525.11925.python-list@python.org>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

CGI Pol Hallen <pythonml@fuckaround.org> - 2015-12-26 10:41 +0100
  Re: CGI Maitu Zentz <zen@nonirvana.org> - 2015-12-27 17:19 +0100
  Re: CGI Laurent Delacroix <laurent@krutt.org> - 2015-12-27 18:59 +0100
    Re: CGI Chris Warrick <kwpolska@gmail.com> - 2015-12-27 21:01 +0100

csiph-web