🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Spawning processes in DOS

#5642
From: Matthew E Cross
Date: Wed, 03 Apr 1991 23:55
19 lines
1454 bytes
In article <1991Apr3.133226.22304@ibmpa.awdpa.ibm.com> dougs@claude1.rchland.ibm.com (J Doug Smith) writes:
->
->____
->
->I'm trying to write an application that will run another program and
->get that program's output so it can be displayed to the user (much
->like an editor runs a compiler and sends the compiler's output to the
->user).  Does anyone have any Ideas on how to accomplish this?  Execing
->another programs certainly is no problem, I just don't see how to get
->the output from that program.

Well, one cheap wayto do it is to redirect the output to a file, then
read in the file.  This won't do if you want to do some interactive
stuff, though.  Does your compiler/library support popen()?
-- 
+-------------------------------------+---------------------------------------+
| "The letter U has a lot of uses ... |       profesor@wpi.wpi.edu            |
|  I like to play it like a guitar!"  +---------------------------------------+
|          -Sesame Street             |       Make love, not War..            |
Technical Details
Message-ID: <1991Apr3.235500.6375@wpi.WPI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!m2c!wpi.WPI.EDU!profesor
References: <1991Apr3.133226.22304@ibmpa.awdpa.ibm.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!m2c!wpi.WPI.EDU!profesor
From: profesor@wpi.WPI.EDU (Matthew E Cross)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Spawning processes in DOS
Message-ID: <1991Apr3.235500.6375@wpi.WPI.EDU>
Date: 3 Apr 91 23:55:00 GMT
References: <1991Apr3.133226.22304@ibmpa.awdpa.ibm.com>
Organization: Worcester Polytechnic Institute
Lines: 19