0

I want to execute a process with exevcp (let's say ls -l). I want the output of that to go to the input of more than one process. I don't if that is possible with pipes. Can someone help me ?

timrau
  • 22,578
  • 4
  • 51
  • 64

1 Answers1

1

Looking at how tee works, as suggested in the comments, might be the way to go. However, for simplicity, why not use a shell and tee itself wrapped around your process?

your_process | tee >(process1) >(process2)

For reference: OS X / Linux: pipe into two processes?

Community
  • 1
  • 1
s-m-e
  • 3,433
  • 2
  • 34
  • 71