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