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

  1. Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!glad
  2. From: glad@ac.dal.ca
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <1992Dec15.014006.9575@ac.dal.ca>
  6. Date: 15 Dec 92 01:40:06 -0400
  7. References: <1ghb1vINNccb@ub.d.umn.edu>
  8. Distribution: world
  9. Organization: Dalhousie University, Halifax, Nova Scotia, Canada
  10. Lines: 35
  11.  
  12. >    Apparantly MSDOS multitasks with the use of the pipe "|".  Is this
  13. > true?  How does the | really work?  For example: "type this.txt | more"
  14. > has 'type' and 'more' being ran simultaneously (apparantly).  How is
  15. > this so?
  16.  
  17. I don't believe it does...DOS still executes one command at a time, but uses
  18. path specified by the TEMP environment variable to store intermediate data
  19. to disk before it passes the data onto the command following the pipe (|).
  20. In fact, I don't believe that piping works unless the TEMP environment variable
  21. is set, or the temp files just go to the root directory of the current drive.
  22. Actually, in the case of piping TYPEd text to the MORE command, you can save
  23. a few keystrokes by just typing 'MORE < this.txt'  The MORE command is just
  24. like TYPE, except that it displays *one* screenfull at a time.
  25. So, to reiterate, there is *no* multitasking going on here. The temp file
  26. that is created during the piping process is erased automatically after
  27. the command has ended, or ^C has been pressed.
  28.  
  29. Francis
  30. --
  31. *******************************************************************************
  32.                 BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE 
  33. *******************************************************************************
  34. *                                    __ __ __ __ __ __ __ __ __ __ __ __ __   *
  35. *                                   |                                      |  *
  36. *       e-mail: GLAD@AC.DAL.CA      |   BGLAD                              |  *
  37. *                                   |   Dalhousie Student Union Building   |  *
  38. *        Phone: (902) 492-1060      |   6136 University Avenue             |  *
  39. *                     429-2562      |   Halifax, Nova Scotia (CAN)         |  *
  40. *                                   |   B3H 4J2                            |  *
  41. *                                   |__ __ __ __ __ __ __ __ __ __ __ __ __|  *
  42. *                                                                             *
  43. *******************************************************************************
  44.                 BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE
  45. *******************************************************************************
  46.  
  47.