I'm wondering how to save the output of the program in a file.
In particular, I'm trying to save all output from vowpal_wabbit application to a file, when running it from the Python like that:
rez1 = subprocess.check_output([parameters], shell=True, universal_newlines=True)
print(rez1)
However it printed out nothing, while the program itself executes well. It's strange because when run from the Terminal with the very same parameters it provides me some useful information.
Can anyone suggest a solution?
P.S. Python 3.4.1 (IPython via Anaconda), Mac OS X