#91: piping stderr and stdout

Solved!
Well, I think I've already looked this up and forgotten it twice.

2>&1

1
That merges the two output streams into one, which you can then pipe around. Here's how you would write the output form a capistrano task to a file (there's probably an easier way but whatever):

cap monitor:grep -s greptext="blah" 2>&1 | cat > test.log

Think you've got a better solution? Help 148c663fd665c53518538e093ce3c2ab_small kueda out by posting your solution