rcp as guest

Paul V O'Neill pvo at uther.CS.ORST.EDU
Thu Jul 20 20:23:23 AEST 1989


In article <113700007 at uxa.cso.uiuc.edu> ddgg0881 at uxa.cso.uiuc.edu writes:
>
>   [guest at hostA wants to rcp (recursively) to hostB as root]


on hostB:

	/.rhosts contains the line:
	hostA guest

on hostA:

	/usr/local/bin/rtar = 
	#!/bin/csh
	tar cvfb - 20 $1 | rsh $2 "cd $3; tar xfBp -"

	cd to one directory above the directory you want to copy,
	type the command:

	rtar SourceDir 'hostA -l root' DestDir

BE CAREFUL!! Escape *'s ~'s and other characters that the shell would expand.

SourceDir will end up in DestDir.

This is actually better than rcp'ing, as symlinks are not followed and
modification times are preserved.



Paul O'Neill                 pvo at oce.orst.edu
Coastal Imaging Lab
OSU--Oceanography
Corvallis, OR  97331         503-737-3251



More information about the Comp.unix.questions mailing list