home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / networki / 2494 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.6 KB  |  63 lines

  1. Newsgroups: comp.os.os2.networking
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!ipgaix!dedalo.unipg.it!luca
  3. From: luca@dedalo.unipg.it (Luca Priorelli)
  4. Subject: Re: IBM's "rsh" still broken, what's the story ?
  5. Message-ID: <1992Dec18.123056.120923@ipgaix.unipg.it>
  6. Sender: news@ipgaix.unipg.it (News Distribution System/9999999)
  7. Nntp-Posting-Host: dedalo.unipg.it
  8. Organization: Universita' di Perugia
  9. References: <92350.224934RONY@awiwuw11.wu-wien.ac.at>
  10. Date: Fri, 18 Dec 1992 12:30:56 GMT
  11. Lines: 50
  12.  
  13. RONY@awiwuw11.wu-wien.ac.at (FLATSCHER Rony) writes:
  14.  
  15. >A couple of months ago someone posted in this group that IBM's "rsh" of
  16. >TCP/IP would not work properly.
  17.  
  18. >At our site we are trying to backup the OS/2-machines using GTAK's tar,
  19. >which even backups extended attributes. As the present implementation of
  20. >this GNU tar does not allow utilizing a remote tape via IBM's TCP/IP (A.
  21. >Kaiser told me today in a note, that the implementation is 4 to 6 months
  22. >away, at least), I tried to follow K.U. Rommel's advice to pipe the
  23. >OS/2-tar-output via "rsh" to the tape in question, which resides on a Unix-
  24. >machine. He mentioned problems in respect to IBM's "rsh".
  25.  
  26. >Guess what, "rsh" still does not work (have TCP/IP 1.2.1, CSD UN29511). We
  27. >get the SYS1805 ("The process tried to write to a nonexistent pipe.") error
  28. >(US version of OS/2 plus golden SP).
  29.  
  30. >What is the story with this issue? The developers should be aware of this
  31. >problem for months now and in the latest CSD for the base-kit the problem
  32. >still is not fixed ?? This is upsetting !
  33.  
  34.  
  35. [deleted stuff]
  36.  
  37. >---rony
  38.  
  39. The problem with IBM rsh is that it is a simplified version of BSD's rsh.
  40. It does not accept input from a pipe so you can't do, for instance,
  41.     type file | rsh host ...
  42.  
  43. Moreover, it uses the write() C library call to write to stdout the output
  44. of the remote command. This means, if I get it right, that it considers
  45. the file (stdout) as opened in test mode so that it takes CTRL-Z as the
  46. EOF indicator and converts CR-LF to LF.
  47.  
  48. In this way It works when the output of the rsh is text (and you can pipe it
  49. right) but doesn't when the output is binary (like in GNU tar).
  50.  
  51. Suggestions:
  52.  
  53. 1) get the BSD rsh source and port it under OS/2. Change read() and write() 
  54. with DosRead and DosWrite (so that the file is handled in the right way).
  55. This is what I have done here.
  56.  
  57. 2) modify the GNU tar port made by K.U. Rommel to include remote tape handling
  58. so that you can access the Unix tape directly from the tar command: e.g.
  59.     tar tvf host:/dev/rst0 
  60. It is a simple change. Note that you still need a working rsh.
  61.  
  62. Luca Priorelli
  63.