Timeline for Is it safe to pipe multiple commands output to the same file simultaneously using tee?
Current License: CC BY-SA 4.0
        10 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 21, 2020 at 4:25 | vote | accept | Sanjay Prajapat | ||
| Sep 20, 2020 at 15:44 | history | became hot network question | |||
| Sep 20, 2020 at 13:53 | answer | added | Andy Dalton | timeline score: 6 | |
| Sep 20, 2020 at 13:36 | comment | added | FedKad | 
        
            
    I would prefer something like: { cmd1 & cmd2 & cmd3 & } | tee /tmp/file. I think that this version will never lose data..
        
     | 
|
| Sep 20, 2020 at 11:56 | comment | added | FedKad | I think there is a possibility that you can lose data. See also this: stackoverflow.com/questions/7842511 | |
| Sep 20, 2020 at 11:33 | comment | added | Sanjay Prajapat | 
        
            
    @FedonKadifeli , Yes these commands run in parallel. I missed to add -a option in the question. i have edited the question now, please check edit.
        
     | 
|
| Sep 20, 2020 at 11:32 | history | edited | Sanjay Prajapat | CC BY-SA 4.0 | 
        
            
             
                
                    added 230 characters in body 
                
             
        
     | 
| Sep 20, 2020 at 8:08 | comment | added | FedKad | 
        
            
    To prevent data loss you can use the "append" (-a) option of tee, but this will not guarantee that the outputs will not be garbled (=not intermixed) in the output file.
        
     | 
|
| Sep 20, 2020 at 8:01 | comment | added | FedKad | Assuming these commands run in parallel, it is not safe. | |
| Sep 20, 2020 at 7:41 | history | asked | Sanjay Prajapat | CC BY-SA 4.0 |