1992.9.22
SUBJECT: rcp 사용시 "protocol screwup: mtime.sec not delimited" 등의 Error
MEANING OF THIS MEMO:
rcp 사용시 error message
"TERM: Undefined Variable",
"rcp: protocol screwup: mtime.sec not delimited",
"stty: TCGETS: Operation not supported on socket" 등을 만났을 때
이를 처리하는 방법을 적어 놓았다.
CONTENTS:
0. 문제
1. 해결
2. 설명
3. 그 밖의 발생했던 Error들
DESCRIPTION:
0. 문제
* 아래는 rcp 문제가 발생했던 한 site의 예를 들어 본다.
(1) send : copy a file from local(isd105) to remote(isd202) - OK
(2) receive : copy a file from remote(isd202) to local(isd105) - OK
+---------------------------------------------+
| rcp OK |
V |
+------------+ +------------+
| | | |
| isd202 | | isd105 |
| | | |
+------------+ +------------+
| A
| rcp fail & error |
+---------------------------------------------+
(3) send : copy a file from local(isd202) to remote(isd105) - !OK
(4) receive : copy a file from remote(isd105) to local(isd202) - !OK
* 문제가 되는 (3), (4)의 경우 error message를 보면,
(3)은 isd202% rcp /tmp/sample isd105:/tmp
"TERM: Undefined Variable",
(4)는 isd202% rcp isd105:/tmp/sample /tmp
"rcp: protocol screwup: mtime.sec not delimited" 이다.
1. 해결
* rcp는 상대 시스템으로 들어가면서 $HOME/.cshrc를 수행하는데 이 때 문제가
있으면 제대로 동작하지 않는다.
* isd105의 $HOME/.cshrc에 문제가 있었던 경우.
그 내용은 불행히도 당시 받아 놓지 않아 알 수 없음.
2. 설명
* rcp는 remote system의 .cshrc, .profile, .login에 있는 command들에서
만들어지는 output들로 인해 error를 발생시킬 수 있다.
이는 rcp의 bug이다. man rcp(1C)의 BUGS 부분을 보시라.
* 따라서 rcp를 사용할 때 자주 발생하는 문제들의 거의 대부분은
위의 환경 화일들에서 특정 command를 수행함으로써 발생하게 된다.
* site에서 발생하는 rcp 관련 error는
우선 위에서 언급한 환경 화일들을 확인해 봄으로써 대부분 해결될 것이다.
3. 그 밖의 발생했던 Error들
* 예를 들어 login시 시간을 display시키기 위하여 .login 화일에 "date" command를
넣는다면 "rcp: protocol screwup: mtime.sec not delimited"과 같은 error를
만나게 되는 것이다.
* "stty: TCGETS: Operation not supported on socket"이라는 에러는
remote system의 환경 화일 중 "stty erase " 이나 "stty pass8"과 같은
stty command가 들어 있어 발생하는 문제이다.
따라서 rcp는 이들 stty command line을 comment out하고
환경 화일들을 source command로 재 실행한 후 사용하여야 한다.
Created on Sep. 22 ,1992
Updated on Oct. 13 ,1992