Can we borrow some code from http://github.com/emersion/slurp? Or for simplicity just call slurp binary?