home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 5158 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.3 KB  |  57 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!usc!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!space.mit.edu!pgf
  3. From: pgf@mgn1.mit.edu (Peter G. Ford)
  4. Subject: Re: Remote tape device write/read?
  5. Message-ID: <1992Jul31.185055.24946@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: mgn1.mit.edu
  8. Reply-To: pgf@space.mit.edu
  9. Organization: MIT Center for Space Research
  10. References: <25104@dog.ee.lbl.gov> <25064@dog.ee.lbl.gov>
  11. Date: Fri, 31 Jul 1992 18:50:55 GMT
  12. Lines: 43
  13.  
  14. In article <25104@dog.ee.lbl.gov>, jschamba@na35.lbl.gov (Jo Schambach) writes:
  15. > In article <25064@dog.ee.lbl.gov>, jschamba@na35.lbl.gov (Jo
  16. Schambach) writes:
  17. > |> Is it possible to read/write from/to a tape device on a remote
  18. computer? If yes,
  19. > |> how? I saw the man page on "rmt", but didn't understand how this
  20. would help.
  21. > Thank you for all the responses so far. The answers mostly referred me to
  22. > "rdump" and company. I guess I didn't ask the question right.
  23. > What I would like to do, is from a C program I would like to say:
  24. > fd = open("remote_host:/dev/rst0, RW);
  25. > read(fd, ...);
  26. > write(fd,...);
  27.  
  28. You need a copy of "rmtape", which does precisely what you want,
  29. provided the remote tape server is set up to execute the "/etc/rmt"
  30. daemon.  Either recompile your stuff with '#include "rmt.h"' as
  31. supplied with "rmtape", or, if you don't have access to the gut-level
  32. calls (e.g. you're using Fortran or somebody else's library) and your
  33. system possesses "/usr/include/syscall.h", change the subroutine names
  34. in "rmtlib.c" from "rmtopen()", to "open()", "rmtread()" to "read()",
  35. etc.
  36.  
  37. I got rmtape from some ftp server (probably "uunet.uu.net", now known
  38. as "ftp.uu.net") several years ago. Here is its README blurb...
  39.  
  40. > This is the remote mag tape library. It allows a program that uses
  41. > Unix system calls to transparently use a file (usually a tape drive) on
  42. > another system via /etc/rmt, simply by including <rmt.h>.  It is
  43. > particularly useful with tar and dd, and is supplied with GNU tar.
  44. > This package has evolved somewhat over the years.  My thanks to the
  45. > people who did most of the original work, and those who've contributed
  46. > bug fixes; appropriate credit is in the man page and source files.
  47. > Enjoy,
  48. > Arnold Robbins
  49. > Emory U. Computing Center
  50. > arnold@emoryu1.cc.emory.edu
  51. > gatech!emoryu1!arnold
  52. > +1 404 727 7636
  53.  
  54.