Using Pipes and Named Pipes to get your programs working together.
mkfifo mynamedpipe ps aux > mynamedpipe