Apr 6, 2008 #1 codemut Programmer Feb 29, 2008 26 US How might the following bash code be modified to suppress tee's output to terminal? ./prog1 | tee >(./prog2 > file1) >(./prog3 > file2)
How might the following bash code be modified to suppress tee's output to terminal? ./prog1 | tee >(./prog2 > file1) >(./prog3 > file2)
Apr 6, 2008 1 #2 Annihilannic MIS Jun 22, 2000 6,317 AU Just make the second programme consume the tee stdout instead of using a second process substition: [tt]./prog1 | tee >(./prog2 > file1) | ./prog3 > file2 [/tt] Or simply dump stdout: [tt]./prog1 | tee >(./prog2 > file1) >(./prog3 > file2) >/dev/null [/tt] Annihilannic. Upvote 0 Downvote
Just make the second programme consume the tee stdout instead of using a second process substition: [tt]./prog1 | tee >(./prog2 > file1) | ./prog3 > file2 [/tt] Or simply dump stdout: [tt]./prog1 | tee >(./prog2 > file1) >(./prog3 > file2) >/dev/null [/tt] Annihilannic.
Apr 7, 2008 1 #3 PHV MIS Nov 8, 2002 53,708 FR Why using the tee command ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Apr 7, 2008 Thread starter #4 codemut Programmer Feb 29, 2008 26 US Thanks Annihilannic; the program now works as desired. To answer PHV, there is an error without the tee; the cause is undiscovered. Upvote 0 Downvote
Thanks Annihilannic; the program now works as desired. To answer PHV, there is an error without the tee; the cause is undiscovered.
Apr 8, 2008 #5 PHV MIS Nov 8, 2002 53,708 FR What about this ? ./prog1 | ./prog2 | tee file1 | ./prog3 > file2 Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
What about this ? ./prog1 | ./prog2 | tee file1 | ./prog3 > file2 Hope This Helps, PH. FAQ219-2884 FAQ181-2886