3 ms·
This is not strictly true. For example, good luck trying to scp a device to a remote host.
by microcolonel 10y ago
This is not strictly true. For example, good luck trying to scp a device to a remote host.
- snuxoll 10y ago"Everything is a stream" is closer to the truth until you learn the dark secret of ioctl and similar fun.
- progman 10y ago> scp a device to a remote host dd if=/dev/hda bs=512 | (ssh root@remote dd of=/dev/hdX bs=512) where bs=512 is the block size in bytes. Of course, the hdX drive must be different from the remote hosts's main drive, otherwise dd won't complete :-)
- microcolonel 10y agoThat is not my point. I meant to say that scp itself will refuse to open the block device file for reading.