From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b2077f5b728fb9af X-Google-Attributes: gid103376,public X-Google-Thread: 114c38,b2077f5b728fb9af X-Google-Attributes: gid114c38,public X-Google-ArrivalTime: 2001-04-13 09:24:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!feeder.qis.net!washdc3-snh1.gtei.net!chcgil2-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada,comp.os.vxworks Subject: Re: redirecting the standard output to different std outputs? Date: Fri, 13 Apr 2001 12:23:30 -0400 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3AD72802.99634BA6@averstar.com> References: <3ad31759$1@pull.gecm.com> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 987179010 10226 141.199.8.77 (13 Apr 2001 16:23:30 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 13 Apr 2001 16:23:30 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6865 comp.os.vxworks:6478 Date: 2001-04-13T16:23:30+00:00 List-Id: Frank wrote: > > Hi! > > I hope you don't mind that I add a question here :-) > It is about the same subject: > > Is it possible to say that one task shall have one std output and another > task a different std output? > Eg. that two task (in the same Ada-program) can have std output to different > Xterm windows in Linux. You can't set the "default" Text_IO output file to two different files at the same time. However, you could use the "Task Attribute" feature of Ada 95 to give each task a File_Access attribute, and do all your output through that. Then each task could have its own, without having to explicitly pass it to every routine under the sun. > > Frank -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/services/ebusiness_applications.html)