[OpenIndiana-discuss] Problems with netcat zfs receive

Flo florian at acw.at
Thu Sep 13 08:56:01 UTC 2012


Hello,

thank you very much! With the "d" flag, the nc commands works very well!

Regards
Florian

On 09/11/2012 02:33 PM, James Carlson wrote:
> Florian wrote:
>> /root at oi151a6-1:~# ssh -n -f 192.168.10.201 "/usr/bin/nc -l -p 1337 |
>> /usr/sbin/zfs receive -F tank/raid1-2"/
>
> Try "nc -dl -p 1337" instead of just "-l".  The problem is that the ssh
> "-n" flag provides /dev/null on stdin, rather than a tty, and that
> confuses netcat.  The netcat "-d" option tells it to ignore stdin.
>




More information about the OpenIndiana-discuss mailing list