Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A module which allows you to spawn subprocesses from a tornado web application in a non-blocking fashion.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

tornado-subprocess

A module which allows you to spawn subprocesses from a tornado web application in a non-blocking fashion.

Example:

 def print_res( status, stdout, stderr, has_timed_out ) :
     if status == 0:
         print "OK:"
         print stdout
     else:
         print "ERROR:"
         print stderr

 t = Subprocess( print_res, timeout=30, args=[ "cat", "/etc/passwd" ] )
 t.start()

 #start tornado 
 t.ioloop.start()
Something went wrong with that request. Please try again.