[SciPy-user] optimize.fmin_tnc - how to catch its output?
Mon Jul 21 22:10:54 CDT 2008
On Tue, Jul 22, 2008 at 12:56 AM, Stéfan van der Walt <email@example.com> wrote:
> python optimise_script.py 2>&1 | cat > out.txt
You don' t need the "| cat".
Never mind the pipecat, there is a shortcut for "2>&1 >" and it is "&>".
> Otherwise, the C-code will have to be modified. Does anybody know
> what the best way is to write to sys.stdout and sys.stderr (not printf
> that goes to /dev/stdout) via the Python C API?
I don't know but found this interesting so googled it:
More information about the SciPy-user