Пример #1
0
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
Пример #2
0
def hxa(cmd):
	pipa = xproc(r'{ ' + cmd + ';} 2>&1', shell=True, stdout=-1).pid
	return pipa