Article View: pl.comp.lang.tcl
Article #182Potok
From: Maciej Sobczak
Date: Mon, 03 Oct 2005 14:03
Date: Mon, 03 Oct 2005 14:03
24 lines
1407 bytes
1407 bytes
Witam, Czy ktoś z grupowiczów może pomóc z potokiem read-write? Prosty test: set pipe [open "|cat" "r+"] puts $pipe "Hello" set line [gets $pipe] puts $line close $pipe Otwieram potok z poleceniem cat (któro wypisuje na stdout to, co przeczytało na stdin). Piszę do potoku i spodziewam się przeczytać to samo. Efekt - program nic nie wypisuje i w ogóle nie kontaktuje (Linux). Krok drugi: potok, w którym można nie tylko pisać do stdin dziecka, ale też odczytać *osobno* jego stdout i stderr. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/
Technical Details
Message-ID:
<dhrdo3$ogn$1@sunnews.cern.ch>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.germany.com!news.belwue.de!irazu.switch.ch!news-zh.switch.ch!switch.ch!cern.ch!newsShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.germany.com!news.belwue.de!irazu.switch.ch!news-zh.switch.ch!switch.ch!cern.ch!news From: Maciej Sobczak <no.spam@no.spam.com> Newsgroups: pl.comp.lang.tcl Subject: Potok Date: Mon, 03 Oct 2005 16:03:47 +0200 Organization: CERN - European Laboratory for Particle Physics Lines: 24 Message-ID: <dhrdo3$ogn$1@sunnews.cern.ch> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 X-Trace: sunnews.cern.ch 1128348227 25111 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Red Hat/1.7.12-1.1.3.2.SL3 X-Accept-Language: en-us, en Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit