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