ragtag_utilities/utilities.py
def run_e(cmd, err):
    """ Run a command and redirect stderr but not stdout. """

    if not isinstance(err, str):
        raise TypeError("err should be a file name (string)")

    f_err = open(err, "w")

    log("INFO", "Running: %s 2> %s" % (" ".join(cmd), err))
    if subprocess.call(cmd, stderr=f_err) != 0:
        raise RuntimeError('Failed : %s 2> %s' % (" ".join(cmd), err))

    log("INFO", "Finished running : %s > %s" % (" ".join(cmd), err))

    f_err.close()
 Run a command and redirect stderr but not stdout. 
Run a command and redirect stderr but not stdout.
Run a command and redirect stderr but not stdout .
def run_e(cmd, err):
    if not isinstance(err, str):
        raise TypeError("err should be a file name (string)")
    f_err = open(err, "w")
    log("INFO", "Running: %s 2> %s" % (" ".join(cmd), err))
    if subprocess.call(cmd, stderr=f_err) != 0:
        raise RuntimeError('Failed : %s 2> %s' % (" ".join(cmd), err))
    log("INFO", "Finished running : %s > %s" % (" ".join(cmd), err))
    f_err.close()
def run_e ( cmd , err ) : if not isinstance ( err , str ) : raise TypeError ( "err should be a file name (string)" ) f_err = open ( err , "w" ) log ( "INFO" , "Running: %s 2> %s" % ( " " . join ( cmd ) , err ) ) if subprocess . call ( cmd , stderr = f_err ) != 0 : raise RuntimeError ( 'Failed : %s 2> %s' % ( " " . join ( cmd ) , err ) ) log ( "INFO" , "Finished running : %s > %s" % ( " " . join ( cmd ) , err ) ) f_err . close ( )
Run a command and redirect stderr but not stdout.
Run a command and redirect stderr but not stdout .
""" Run a command and redirect stderr but not stdout. """
cmd
err