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