previously on this list Stuart Henderson contributed:

> >
> > I think split should work. I love Unix
> >
> > #!/bin/sh
> > until /bin/dd if=/dev/zero | split -b 1k
> > do
> > /bin/dd if=/dev/zero | split -b 1k
> > done
> >  
> 
> There are headers to deal with. You might get somewhere with
> tcpslice or pcapmerge; if neither of these do what you want, pcapmerge
> is written in perl and shouldn't be too difficult to modify or use as
> a base for something else.

Hmm, As wireshark used to give truncated messages in the middle of a
packet from tcpdumps output with -C and -W I assumed I may just lose a
packet or could get the bytes right. i think there are also line modes
on both tools.

It's always better to use something designed for the job though so
thanks, I'll look into them.

-- 
_______________________________________________________________________

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd
_______________________________________________________________________

Reply via email to