Re: [arch-general] broken pipe

2019-12-23 Thread Pascal via arch-general
hi, https://github.com/patatetom/hashs and merry Christmas. Le jeu. 19 déc. 2019 à 23:16, Pascal a écrit : > hi Ralph, > > thank you for that clarification. > the function works a little faster with them. > > file_info(){ echo -n ${1:=/dev/stdin}$'\t'; ( tee < "${1}" >( file > --mime-type -b -e

Re: [arch-general] broken pipe

2019-12-19 Thread Pascal via arch-general
hi Ralph, thank you for that clarification. the function works a little faster with them. file_info(){ echo -n ${1:=/dev/stdin}$'\t'; ( tee < "${1}" >( file --mime-type -b -e compress -e tar -e elf - >&3; cat >/dev/null ) >( md5sum >&3 ) >( sha1sum >&3 ) >/dev/null; ) 3>&1 | tr '\n' '\t'; echo; }

Re: [arch-general] broken pipe

2019-12-19 Thread Ralph Corderoy
Hi Pascal, > file_info(){ > echo -n ${1:=/dev/stdin}$'\t' > ( > tee < "${1}" \ > >( file --mime-type -b -e compress -e tar -e elf - >&3 ) \ > >( md5sum >&3 ) \ > >( sha1sum >&3 ) \ > >/dev/null > ) 3>&1 | > tr '\n' '\t' >

Re: [arch-general] broken pipe

2019-12-19 Thread Pascal via arch-general
it depends a little bit on the context in which the function will be played : - with an SSD disk, the playback of a large file is very fast, - with a lot of available memory, the file is cached at its first reading and subsequent readings are almost instantaneous. if these two conditions are met, i

Re: [arch-general] broken pipe

2019-12-18 Thread mar77i via arch-general
‐‐‐ Original Message ‐‐‐ On Wednesday, December 18, 2019 4:41 PM, Andy Pieters wrote: > On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general > arch-general@archlinux.org wrote: > > > that's awesome, it works ! > > it was so simple with cat taking over and consuming the data until the en

Re: [arch-general] broken pipe

2019-12-18 Thread Andy Pieters
On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general wrote: > > that's awesome, it works ! > it was so simple with cat taking over and consuming the data until the end ! > (I added a redirect to /dev/null to cat) > big thank you. I'm interested in the amount of effort you put into this. Isn't th

Re: [arch-general] broken pipe

2019-12-18 Thread Pascal via arch-general
that's awesome, it works ! it was so simple with cat taking over and consuming the data until the end ! (I added a redirect to /dev/null to cat) big thank you. Le mer. 18 déc. 2019 à 16:19, mar77i via arch-general < arch-general@archlinux.org> a écrit : > ‐‐‐ Original Message ‐‐‐ > On Wed

Re: [arch-general] broken pipe

2019-12-18 Thread mar77i via arch-general
‐‐‐ Original Message ‐‐‐ On Wednesday, December 18, 2019 3:20 PM, Pascal via arch-general wrote: > hello, > > it works perfectly because both tools used, md5sum and sha1sum, consume all > the data. > > on the other hand, the function returns wrong fingerprints if I insert a > tool like f

[arch-general] broken pipe

2019-12-18 Thread Pascal via arch-general
hello, to avoid having to read twice the entire large file, I use the tee tool in this way to calculate two checksums "simultaneously" : file_info(){ echo -n ${1:=/dev/stdin}$'\t' ( tee < "${1}" \ >( md5sum >&3 ) \ >( sha1sum >&3 ) \ >/dev/null

[arch-general] "Broken pipe" messages while last archlinux keyring update

2013-04-08 Thread Manuel Reimer
Hello, with the last update of the Archlinux keyring package, I got a few errors like the following one: usr/bin/pacman-key: line 615: printf: write error: Broken pipe Is this a known bug or can this be ignored? Yours Manuel Reimer