When the pipe function gets run, it wants a command keyed in to send the attachment. The command needs to be able to take things in through a pipe too and you'll sometimes read that one of the command line switches is a - for read from standard input. So probably | to get pipe running, then yydecode - >./binaries to send whatever comes out of that pipe into a binaries subdirectory might work.