home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11432 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.5 KB

  1. Path: sparky!uunet!utoday!jaflrn!jaf
  2. From: Jon Freivald <jaf@jaflrn.UUCP>
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <FaJuVB7w164w@jaflrn.UUCP>
  6. Date: Tue, 15 Dec 92 18:04:38 EST
  7. References: <1ghb1vINNccb@ub.d.umn.edu>
  8. Organization: The Wizzard's Cave, East Meadow, NY
  9. Lines: 29
  10.  
  11. cbusch@ub.d.umn.edu (Chris) writes:
  12.  
  13. >    Apparantly MSDOS multitasks with the use of the pipe "|".  Is this
  14. > true?  How does the | really work?  For example: "type this.txt | more"
  15. > has 'type' and 'more' being ran simultaneously (apparantly).  How is
  16. > this so?
  17.  
  18. It is not so -- what's really happening is that DOS is writing the
  19. output to a temp file, reading input from the temp file, then deleting
  20. it.  To use your own example, "type this.txt | more" is actually doing:
  21.  
  22.      type this.txt > tempfil.fil
  23.      more < tempfil.fil
  24.      del tempfil.fil
  25.  
  26. DOS obviously uses different names than "tempfil.fil", usually something
  27. looking like "2DA472AF" or some other such unique nonsense.  You can
  28. verify this behavior by running an unerase program in the directory
  29. pointed to by your TEMP environment variable (or the root of your boot
  30. drive if you don't have a TEMP variable).
  31.  
  32. Hope this clarifies the issue.
  33.  
  34. Jon
  35.  
  36. =============================================================================
  37.                    Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
  38.      Nothing is impossible for the man who doesn't have to do it.
  39. =============================================================================
  40.