Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by pmarreck on Sunday March 20, 2016 @12:31PM
(#11323510)
are you sure? how else would you pipe to GPG?
[ Parent
| on HN ]
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by yuubi on Sunday March 20, 2016 @04:11PM
(#11324436)
Just redirect gpg's input from the file?
gpg ... < hello.txt | curl ...
Its stdin will be the file instead of a pipe, but few programs care about the difference and fewer still in such a way that you'd prefer to use the pipe.