Solution for: #91: piping stderr and stdout

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