2010. 6. 29. 12:19
IT
rcp 사용하기
1. rcp란 : transfer files between a local and a remote host or between two remote hosts.
2. setting
[src host]
/etc/hosts file
targetip target-hostname
~/.rhost file
target-hostname target-user
[target host]
/etc/hosts file
src-ip src-hostname
~target-user/.rhost file
src-hostname src-user
3. usage
put : rcp myfile target-hostname:/a/b/myfile
get : rcp target-hostname:/a/b/myfile myfile
4. sample
DEPLOY_HOST=xxxxxx
rcp $LIB_PATH/$LIB_PREFIX$FILENAME.so $DEPLOY_HOST:$LIB_PATH/$LIB_PREFIX$FILENAME.so
cf) rsh
rsh $DEPLOY_HOST mv /afile /bfile
이 글은 스프링노트에서 작성되었습니다.