On Wed, 7 Mar 2007, [EMAIL PROTECTED] wrote:

I would like to pipe the output of ddrescue to netcat to send an image trough a network. I can do this with dd ( dd if=/dev/hda1 | netcat pc_ip 3333 and netcat -l -p 3333 | dd of=hda1.img in the other side ) but I wasn't able with ddrescue....any clue?

Create a fifo with mkfifo, and have dd_rescue write to it. On a separate screen have netcat read from the fifo.

Be warned: a fifo is not seekable (btw the | you are using with dd is actually also a fifo internally), since it's not seekable I can not say how it will work. dd_rescue does seek the output file, especially when it finds errors.

It's likely to only work if there are no errors in the input, in which case why are you using dd_rescue?

I don't know why you want to use netcat, if it's because you have no available storage for your dd_rescue output, instead of netcat (which will not work since it's not seekable), use a remotely mounted filesystem (smb, nfs, sshfs, etc.).

        -Ariel


_______________________________________________
Bug-ddrescue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to