Article View: comp.os.msdos.programmer
Article #6454Re: Normal MSDOS multitasking!
From: glad
Date: Tue, 15 Dec 1992 05:40
Date: Tue, 15 Dec 1992 05:40
34 lines
2630 bytes
2630 bytes
> Apparantly MSDOS multitasks with the use of the pipe "|". Is this
> true? How does the | really work? For example: "type this.txt | more"
> has 'type' and 'more' being ran simultaneously (apparantly). How is
> this so?
I don't believe it does...DOS still executes one command at a time, but uses
path specified by the TEMP environment variable to store intermediate data
to disk before it passes the data onto the command following the pipe (|).
In fact, I don't believe that piping works unless the TEMP environment variable
is set, or the temp files just go to the root directory of the current drive.
Actually, in the case of piping TYPEd text to the MORE command, you can save
a few keystrokes by just typing 'MORE < this.txt' The MORE command is just
like TYPE, except that it displays *one* screenfull at a time.
So, to reiterate, there is *no* multitasking going on here. The temp file
that is created during the piping process is erased automatically after
the command has ended, or ^C has been pressed.
Francis
--
*******************************************************************************
BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE
*******************************************************************************
* __ __ __ __ __ __ __ __ __ __ __ __ __ *
* | | *
* e-mail: GLAD@AC.DAL.CA | BGLAD | *
* | Dalhousie Student Union Building | *
* Phone: (902) 492-1060 | 6136 University Avenue | *
* 429-2562 | Halifax, Nova Scotia (CAN) | *
* | B3H 4J2 | *
* |__ __ __ __ __ __ __ __ __ __ __ __ __| *
* *
*******************************************************************************
BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE
*******************************************************************************
Technical Details
Message-ID:
<1992Dec15.014006.9575@ac.dal.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!gladReferences:
<1ghb1vINNccb@ub.d.umn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!glad From: glad@ac.dal.ca Newsgroups: comp.os.msdos.programmer Subject: Re: Normal MSDOS multitasking! Message-ID: <1992Dec15.014006.9575@ac.dal.ca> Date: 15 Dec 92 01:40:06 -0400 References: <1ghb1vINNccb@ub.d.umn.edu> Distribution: world Organization: Dalhousie University, Halifax, Nova Scotia, Canada Lines: 35