ftp/rcp can't copy devices

Rob Hulsebos hulsebos at philmds.UUCP
Mon Aug 29 18:35:20 AEST 1988


When I use the 'ftp' or 'rcp' command, and want to copy a disk-partition
(accessed via /dev/rdsk/*) to the other end, both utilities
complain: "not a plain file".

Of course, the manual doesn't mention that only plain files can be
transferred. Does anybody know why ftp and rcp behave this way?

Suprisingly, copying _to_ a device is allowed. An ftp-command like
"put /unix /dev/null" works fine, and is a nice trick to test the overhead
incurred by the filesystem on the receiving end.

------------------------------------------------------------------------------
R.A. Hulsebos                                       ...!mcvax!philmds!hulsebos
Philips I&E Automation Modules                            phone: +31-40-785723
Building TQ-III-1, room 11
Eindhoven, The Netherlands                                # cc -O disclaimer.c
------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list