GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Archive

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — Shell Run

View as Markdown

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:

  • https://github.com/kennethreitz/envoy

  • http://shell-command.readthedocs.org/en/latest/

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
Previous
Shell Redirection Fails
Next
Siac Nyse
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.