Hacker News new | ask | show | jobs
by throw501 3006 days ago
nice, thanks.

would be nice if it could allow pipes. example to send the clipboard:

$ pbpaste | qr-filetransfer 2018/03/22 15:06:48 At least one argument is required

2 comments

That's an interesting point. Maybe the tool could create a temporary file with the data piped to it.

But for now I think you should stick with:

pbpaste > /tmp/clipboard.txt && qr-filetransfer /tmp/clipboard.txt

Thanks for the idea, I'm tracking it in github.

hmm. i'd rather not. generally don't want the clipboard going to disk. thanks though.
Pipe to /dev/shm/filename
Reasonable
why not

   pbpaste | qr-filetransfer /dev/stdin
Or even just

    qr-filetransfer <(pbpaste)
This is not going to work unfortunately, the program expects the arguments to be paths.
<() expands to a path:

    $ echo <(true)
    /dev/fd/63
Ah, you are absolutely right