[ Web Proxy ]
URL:
Viewing: https://wiki.python.org/moin/../python/platforms/../../python/web/../psf/../archive/ShellRun.html [Back]  [Original]

Shell Run - Python Wiki
Python Wiki

On this page

psf/wiki 0 0
Copy page

Shell Run

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Page status - development of a library (public domain) to run commands through shell is moved to https://bitbucket.org/techtonik/shellrun along with detailed notes, because it is easier to sync notes with code in repository.

Libraries to run command through system shell, because subprocess suxx:

subprocess deadlock example:

  • TODO

API Comparison

Running:

r = envoy.run('command')

r = shell_command.shell_call('command')

Return code, https://en.wikipedia.org/wiki/Exit_status

# subprocess
p.returncode

# envoy
r.status_code

# shell_command
r
Back to top

Web Proxy Viewer  |  New URL  |  Original Page