Package Gnumed :: Package pycommon :: Module gmShellAPI
[frames] | no frames]

Module gmShellAPI

source code

GNUmed general tools.


Version: $Revision: 1.13 $

Author: K. Hilbert <Karsten.Hilbert@gmx.net>

License: GPL (details at http://www.gnu.org)

Functions
 
detect_external_binary(binary=None) source code
 
find_first_binary(binaries=None) source code
 
run_command_in_shell(command=None, blocking=False, acceptable_return_codes=None)
Runs a command in a subshell via standard-C system().
source code
 
run_first_available_in_shell(binaries=None, args=None, blocking=False, run_last_one_anyway=False) source code
Variables
  __doc__ = """GNUmed general tools."""

Imports: os, sys, logging


Function Details

run_command_in_shell(command=None, blocking=False, acceptable_return_codes=None)

source code 
Runs a command in a subshell via standard-C system().

<command>
        The shell command to run including command line options.
<blocking>
        This will make the code *block* until the shell command exits.
        It will likely only work on UNIX shells where "cmd &" makes sense.