[clug] using 'dd' in a pipeline
steve jenkin
sjenkin at canb.auug.org.au
Sun Nov 23 20:33:11 MST 2014
feof(3) from the stdio library detects EOF.
Not sure about the interaction of syscalls for open/read and library calls to stdio streams.
The function feof() tests the end-of-file indicator for the stream pointed to by stream
On 24 Nov 2014, at 1:56 pm, steve jenkin <sjenkin at canb.auug.org.au> wrote:
> I’ve been looking at deliberate MD5 collisions and went to write a simple script based on ‘dd’, only to fall flat on my face - detecting ‘end of file’ from STDIN.
>
> ‘dd’ doesn’t consider EOF as an error and returns “success”.
>
--
Steve Jenkin, IT Systems and Design
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA
mailto:sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin
More information about the linux
mailing list