views:

56

answers:

2

How do I pipe standard output from linux pipe in two inpdendent files?

I use a tool called openRTSP and which to standard output in two independent files i.e. openRTSP > /tmp/file1 > /tmp/file2

+7  A: 

The command is tee. Its name is explicit.

openRTSP | tee /tmp/file1 > /tmp/file2
mouviciel
+2  A: 
openRTSP | tee /tmp/file1 /tmp/file2
ghostdog74