How can I send the output of a command to a while loop. I can do so with a file doing this: while command do something done < /tmp/foo