I am piping the output from multiple commands into the same file simultaneously using terminal like this:
cmd1 | tee -a /tmp/file cmd2 | tee -a /tmp/file cmd3 | tee -a /tmp/file Is it safe to use? Any data loss or read/write permission problem with this method?
Edit: I am fine with output getting intermixed, I just want to make sure that everything get written to the file. What if two commands tries to write the output to the file exactly same time, Will it crash or not?