Force flushing of output to a file while bash script is still running Force flushing of output to a file while bash script is still running bash bash