News for hackers. Stuff that matters.
Re:Show HN: Transfer files to mobile device by scanning a QR... by throw501 on Thursday March 22, 2018 @03:09PM (#16651676)
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

Re:Show HN: Transfer files to mobile device by scanning a QR... by daw___ on Thursday March 22, 2018 @03:15PM (#16651750)
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.

Re:Show HN: Transfer files to mobile device by scanning a QR... by throw501 on Thursday March 22, 2018 @03:30PM (#16651900)
hmm. i'd rather not. generally don't want the clipboard going to disk. thanks though.
Re:Show HN: Transfer files to mobile device by scanning a QR... by JetSpiegel on Thursday March 22, 2018 @05:18PM (#16652787)
Pipe to /dev/shm/filename
Re:Show HN: Transfer files to mobile device by scanning a QR... by daw___ on Thursday March 22, 2018 @03:33PM (#16651925)
Reasonable
Re:Show HN: Transfer files to mobile device by scanning a QR... by dmitrygr on Thursday March 22, 2018 @04:17PM (#16652325)
why not

   pbpaste | qr-filetransfer /dev/stdin
Re:Show HN: Transfer files to mobile device by scanning a QR... by jakobegger on Thursday March 22, 2018 @05:46PM (#16653015)
Or even just

    qr-filetransfer <(pbpaste)
Re:Show HN: Transfer files to mobile device by scanning a QR... by daw___ on Thursday March 22, 2018 @05:50PM (#16653033)
This is not going to work unfortunately, the program expects the arguments to be paths.
Re:Show HN: Transfer files to mobile device by scanning a QR... by zokier on Thursday March 22, 2018 @06:11PM (#16653179)
<() expands to a path:

    $ echo <(true)
    /dev/fd/63
Re:Show HN: Transfer files to mobile device by scanning a QR... by daw___ on Friday March 23, 2018 @04:39AM (#16656142)
Ah, you are absolutely right