5
¿Cómo redirigir la salida con subproceso en Python?
Qué hago en la línea de comando: cat file1 file2 file3 > myfile Lo que quiero hacer con Python: import subprocess, shlex my_cmd = 'cat file1 file2 file3 > myfile' args = shlex.split(my_cmd) subprocess.call(args) # spits the output in the window i call my python program
97
python
subprocess