home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / sysv386 / 13816 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.8 KB  |  39 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!unislc!dold
  3. From: dold@unislc.uucp (Clarence Dold)
  4. Subject: Re: cpio one file at a time?
  5. References: <sells-290891105149@dialup-slip-1-31.gw.umn.edu>
  6. Message-ID: <1992Aug31.011929.9632@unislc.uucp>
  7. Organization: Unisys Corporation SLC
  8. Date: Mon, 31 Aug 1992 01:19:29 GMT
  9. Lines: 28
  10.  
  11. From article <sells-290891105149@dialup-slip-1-31.gw.umn.edu>, by sells@cs.umn.edu (Chris Sells):
  12.  
  13. > The 'mv' was only an example. I'll be performing multiple operations on
  14. > each file and I need to be able to do it before the next file is loaded.
  15. > BTW, what's pax?
  16.  
  17. Methinks that a named pipe fits into this scheme somewhere.
  18. I might be inclined to read directly from the tape to a file, perhaps via my
  19. code, or dd, where the file on disk is a named pipe that would be a raw
  20. cpio dataset.  Then the "special" process would read from the raw data, and
  21. pipe to cpio.  While monitoring the files that cpio is creating and filling
  22. (by some undescribed method), the "special" process would stop feeding data
  23. down the pipe to cpio until the manipulation was done.  Then the data feed
  24. would resume into cpio.
  25. The named pipe would be some system determined maximum size on disk, I think
  26. 5K.  The tape coming in would stop while the pipe was at its maximum size,
  27. and feed when the named pipe is drained.  The "special" process would act as
  28. a throttle, controlling the data rate into cpio.  Without figuring out how
  29. to monitor the internals of a cpio archive, I might do something as crude as
  30. a cpio -it to find the file names on disk, storing the names, then start in
  31. earnest, watching for each to be created (or modified), as an indication that 
  32. the previous one was fully restored.
  33. Named pipes are created with "mknod foobar p"
  34.  
  35. -- 
  36. ---
  37. Clarence A Dold - dold@unislc.slc.Unisys.COM
  38.                ...pyramid!ctnews!tsmiti!dold
  39.