I am trying to create a bash function called url2pdf:
wget -O "$1" | /System/Library/Printers/Libraries/convert | open -a Preview
However, whenever I try and execute this, I get:
HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: “STDOUT” [ <=> ] 0 --.-K/s in 0s Cannot write to “-” (Broken pipe).
So I am guessing there is something wrong with my pipe redirection. Any suggestions?