linux - Is there a way to flush stdout of a running process -
i have long-running process stdout redirected file. e.g.:
./my-script.sh > file.txt & part of stdout still cached, flush file, see results earlier. there way it?
the caching handled libc. can use stdbuf command change buffer size:
stdbuf -o0 ./my-script.sh > file.txt & -o0 sets buffer size stdout 0. want -e0 stderr.
Comments
Post a Comment