🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6475

Re: Normal MSDOS multitasking!

#6475
From: Jon Freivald
Date: Tue, 15 Dec 1992 23:04
29 lines
1560 bytes
cbusch@ub.d.umn.edu (Chris) writes:

>    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?

It is not so -- what's really happening is that DOS is writing the
output to a temp file, reading input from the temp file, then deleting
it.  To use your own example, "type this.txt | more" is actually doing:

     type this.txt > tempfil.fil
     more < tempfil.fil
     del tempfil.fil

DOS obviously uses different names than "tempfil.fil", usually something
looking like "2DA472AF" or some other such unique nonsense.  You can
verify this behavior by running an unerase program in the directory
pointed to by your TEMP environment variable (or the root of your boot
drive if you don't have a TEMP variable).

Hope this clarifies the issue.

Jon

=============================================================================
                   Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
=============================================================================
Technical Details
Message-ID: <FaJuVB7w164w@jaflrn.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jaf
References: <1ghb1vINNccb@ub.d.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jaf
From: Jon Freivald <jaf@jaflrn.UUCP>
Newsgroups: comp.os.msdos.programmer
Subject: Re: Normal MSDOS multitasking!
Message-ID: <FaJuVB7w164w@jaflrn.UUCP>
Date: Tue, 15 Dec 92 18:04:38 EST
References: <1ghb1vINNccb@ub.d.umn.edu>
Organization: The Wizzard's Cave, East Meadow, NY
Lines: 29