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

  1. Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!cybrspc!roy
  2. From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <cuVRVB3w165w@cybrspc.UUCP>
  6. Date: 14 Dec 92 12:42:59 GMT
  7. References: <1ghb1vINNccb@ub.d.umn.edu>
  8. Organization: Villa CyberSpace, Minneapolis, MN
  9. Lines: 20
  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. You should be so lucky!  In your example, the processes are executed
  19. sequentially.  The output of 'type' is directed to a temporary disk
  20. file, and 'more' is started with its stdin directed to this file.  You
  21. can see evidence of this easily... create an empty directory, log to it
  22. and type 'dir | more'.  The two funny-named files you'll see are the
  23. tempfiles DOS created to handle your pipe.  I have no idea why it
  24. creates 2 files, though.  Probably a default in case you want to do a
  25. 2-pipe command.
  26. --
  27. Roy M. Silvernail --  roy%cybrspc@cs.umn.edu - OR-  cybrspc!roy@cs.umn.edu
  28.    "I like Santa Claus as well as the next guy, but do you really want a
  29.    hard drive that's spent 6000 miles at the bottom of a canvas sack in a
  30.             wooden sleigh powered by airborne reindeer?" -- me
  31.