home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 5139 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  2.4 KB

  1. Path: sparky!uunet!stanford.edu!agate!dog.ee.lbl.gov!na35.lbl.gov!jschamba
  2. From: jschamba@na35.lbl.gov (Jo Schambach)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: Remote tape device write/read?
  5. Date: 31 Jul 1992 15:34:49 GMT
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 71
  8. Distribution: world
  9. Message-ID: <25104@dog.ee.lbl.gov>
  10. References: <25064@dog.ee.lbl.gov>
  11. NNTP-Posting-Host: 128.3.252.87
  12.  
  13. In article <25064@dog.ee.lbl.gov>, jschamba@na35.lbl.gov (Jo Schambach) writes:
  14. |> Is it possible to read/write from/to a tape device on a remote computer? If yes,
  15. |> how? I saw the man page on "rmt", but didn't understand how this would help.
  16. |> 
  17. |> Jo
  18. |> -- 
  19. |> 
  20. |> **************************************************************
  21. |> Joachim Schambach
  22. |> Mailstop 50D
  23. |> Lawrence Berkeley Labs
  24. |> Berkeley, CA 94720, USA
  25. |> 
  26. |> email:    JJSchambach@lbl.gov    or    JJSchambach@lbl.bitnet
  27. |> Tel:    x1-(510) 486-6349
  28. |> --------------------------------------------------------------
  29. |> 2 + 2 = 3, for suitably small values of 2
  30. |> **************************************************************
  31. |> 
  32.  
  33. -- 
  34. Thank you for all the responses so far. The answers mostly referred me to
  35. "rdump" and company. I guess I didn't ask the question right.
  36. What I would like to do, is from a C program I would like to say:
  37.  
  38. fd = open("remote_host:/dev/rst0, RW);
  39. read(fd, ...);
  40. write(fd,...);
  41.  
  42. is that possible?
  43. Thank you very much to: Bill Thomason <wbt@rex.cs.tulane.edu>,
  44.             rjq@phys.ksu.edu (Rob Quinn),
  45.             mikey@netcom.com (Mike Pechner).
  46.  
  47. Their answers were:
  48. ----------------------------------------------------------------
  49. Look at the tar man page for examples.
  50.  
  51.  
  52. EX.
  53.  
  54. #write to a remote tape drive
  55. tar cvfb - 20 <files> | rsh hostname dd of=/dev/rst0 obs=20b
  56.  
  57. # read from a remote tape drive.
  58. rsh hosname if=/dev/rst0 ibs=20b  | tar xvfb - 20  < specification>
  59. ------------------------------------------------------------------
  60.  An easy way is to use dump and restore with remotehost:/dev/tape... as
  61. the tape name. 
  62.  
  63. --------------------------------------------------------------------
  64. look at rdump and rrestore
  65.  
  66.  
  67. -- 
  68.  
  69.  
  70.  
  71.  
  72. **************************************************************
  73. Joachim Schambach
  74. Mailstop 50D
  75. Lawrence Berkeley Labs
  76. Berkeley, CA 94720, USA
  77.  
  78. email:    JJSchambach@lbl.gov    or    JJSchambach@lbl.bitnet
  79. Tel:    x1-(510) 486-6349
  80. --------------------------------------------------------------
  81. 2 + 2 = 3, for suitably small values of 2
  82. **************************************************************
  83.  
  84.