def h(cmd): pipa = xproc(r'{ ' + cmd + ';} 2>&1', shell=True, stdout=-1).stdout salida = pipa.read() if salida[-1:] == '\n': salida = salida[:-1] return salida
def hxa(cmd): pipa = xproc(r'{ ' + cmd + ';} 2>&1', shell=True, stdout=-1).pid return pipa