Thanks, SirDice. That worked. I'm thinking it was the pipe in combination with the ssh in my loop that killed it.