home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / 4405 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.7 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!ames!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Re: Rcp -- is that rlogin or what?
  5. Message-ID: <192f01INN2vd@early-bird.think.com>
  6. Date: 14 Sep 92 16:35:13 GMT
  7. References: <aronsson.716470900@jeeves>
  8. Distribution: comp
  9. Organization: Thinking Machines Corporation, Cambridge MA, USA
  10. Lines: 28
  11. NNTP-Posting-Host: telecaster.think.com
  12.  
  13. In article <aronsson.716470900@jeeves> aronsson@sectra.se (Lars Aronsson) writes:
  14. >What hides under the hood of the "rcp" command?
  15.  
  16. rcp and rdump are built on top of rsh.
  17.  
  18. >I thought rlogin, rsh/remsh, and rcp were all the same thing in
  19. >different shapes. They all use the same system of .rhost files.
  20.  
  21. rlogin is not built on the same protocol as rsh/rcp/rdump, but both rlogind
  22. and rshd perform hosts.equiv/.rhosts authentication.  The rlogin protocol
  23. is designed for interactive use, and provides mechanisms for transmitting
  24. the terminal type, terminal speed, window size changes, and cooked/raw mode
  25. changes.  Rshd just runs the given command with stdin/stdout/stderr
  26. connected to the socket, and provides no special processing.  Rlogind
  27. starts up a login shell, while rshd just runs an ordinary subshell.
  28.  
  29. >Now I
  30. >have seen people comparing the performance of rcp with "cat | rsh",
  31. >which suggests they are different, and I am not so sure any longer.
  32.  
  33. They should be similar in performance.  rcp has options to transmit file
  34. dates and permissions, but for a large file the actual data transfer should
  35. be the limiting factor.
  36. -- 
  37. Barry Margolin
  38. System Manager, Thinking Machines Corp.
  39.  
  40. barmar@think.com          {uunet,harvard}!think!barmar
  41.