CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   FoamJob stderr redirection (http://www.cfd-online.com/Forums/openfoam-bugs/62562-foamjob-stderr-redirection.html)

hoogland August 9, 2007 07:21

OF1.4, foamJob line 243, missi
 
OF1.4, foamJob line 243, missing 2>&1.

This affects only those who like to run jobs in the background. The redirection appears in the echo, but not the actual command. When using foamJob, e.g.:

foamJob -p <solver> <root> <case>

errors will be sent to screen but won't be captured in the log. Simply change line 243 from:

> ${ROOT}/${CASE}/log &

to

> ${ROOT}/${CASE}/log 2>&1 &


All times are GMT -4. The time now is 21:33.