mpirun--> output be written in both Log file and Terminal
Hi,
How can i use parallel run and have output not only in log file, also in terminal window. Only in log file: Quote:
Quote:
|
Option 1) Try 'tee'. E.g.
Code:
mpirun -np 8 icoFoam -parallel | tee log Option 2) Redirect the output to a log file like for your first command: Code:
mpirun -np 8 icoFoam -parallel > log & Code:
tail -f log Open an new screen: Code:
screen Code:
mpirun -np 8 icoFoam -parallel Reattach your screen to view your running job later: Code:
screen -r |
Isn't dumping it all to both screen AND file a bit unnecessary? Why not output it to log and use 'tail log' to look at the log file? Or if you're interested in looking at residuals use foamLog / pyFoam.
|
Thanks, i will try to do your suggestions.
|
I was lurking and saw this thread. I got a solution that might help others (since the post is old).
On a second terminal, use this command: Code:
watch -n(secondsinterval) tail -n(numberoflines) logfile |
All times are GMT -4. The time now is 23:29. |