process control

Easy fork-exec and pipe with I/O redirection
Download

process control Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Anh Hai Trinh
  • Publisher web site:
  • http://github.com/aht/

process control Tags


process control Description

Easy fork-exec and pipe with I/O redirection process control (pc.py) is an easy fork-exec and pipe with I/O redirection.Design goals: * Easy to fork-exec commands, wait or no wait * Easy to capture stdout/stderr of children (command substitution) * Easy to express I/O redirections * Easy to construct pipelines * Use short names for easy interactive typingIn effect, make Python more usable as a system shell.Technically, pc.py is a layer on top of subprocess. The subprocess module support a rich API but is clumsy for many common use cases, namely sync/async fork-exec, command substitution and pipelining, all of which is trivial to do on system shells. This module depends on Python 2.6, or where subprocess is available. Doctests require /bin/sh to pass. Tested on Linux.This is an alpha release. Some features are unimplemented. Expect bugs.Reference: sh(1) -- The Scheme Shell -- http://www.scsh.net/docu/html/man.html http://golang.org/src/pkg/syscall/exec_unix.go Requirements: · Python


process control Related Software