1 2 3 4
#!/usr/bin/env bash # Runs train.py and saves the console output to output/out stdbuf -i0 -o0 -e0 python -u train.py | tee output/out