Article View: pl.comp.lang.tcl
Article #179Re: obsluga buttona z bardzo dlugim czasem realizacji powiazanego z nim polecenia
From: olo
Date: Mon, 03 Oct 2005 06:19
Date: Mon, 03 Oct 2005 06:19
31 lines
1858 bytes
1858 bytes
Googie <no@spam.org> wrote:
> Marcin Szelest SQ9DJJ napisał(a):
>> Ludzie ratujcie bo sie zaraz przekrece!!
>
> Trzeba użyć strumieni, zamiast standardowego execa. Strumienie nie
> blokują wykonywania/odświerzania bierzącego skryptu, ale wymagają nieco
> więcej oprogramowywania. Oto przykład, jak zapisać:
>
> puts [exec polecenie argument1 argument2]
>
> używając strumieni:
>
> proc handlePolecenie {id} {
> set data [read $id]
> puts $data
> if {[eof $id]} {
> # [catch] użyte tak dla pewności.
> catch {close $id}
> }
> }
> set id [open "|polecenie argument1 argument2" r]
> fileevent $id readable "handlePolecenie $id"
>
>
A ja musle, ze wywolanie 'update' w zupelnosci wystarczy.
Czyz nie?
Serdecznie pozdrawiam
olo
Technical Details
Message-ID:
<dhqigq$mmp$1@news.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mailReferences:
<op.sxw2d3dfhxnnvd@szelest.gliwice.evatronix.com.pl> <dhjh8q$a3h$1@srv.cyf-kr.edu.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
From: <olo@nowar.pl>
Newsgroups: pl.comp.lang.tcl
Subject: Re: obsluga buttona z bardzo dlugim czasem realizacji powiazanego z nim polecenia
Date: Mon, 3 Oct 2005 06:19:06 +0000 (UTC)
Organization: CI TASK http://news.task.gda.pl/
Lines: 32
Sender: <pzaprawa@pzaprawa.iel.gda.pl>
Message-ID: <dhqigq$mmp$1@news.task.gda.pl>
References: <op.sxw2d3dfhxnnvd@szelest.gliwice.evatronix.com.pl> <dhjh8q$a3h$1@srv.cyf-kr.edu.pl>
NNTP-Posting-Host: gizmo.iel.gda.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1128320346 23257 153.19.97.189 (3 Oct 2005 06:19:06 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Mon, 3 Oct 2005 06:19:06 +0000 (UTC)
X-Organization-Notice: Organization line has been filtered
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.6.13cfg1 (i686))
X-Original-Organization: CI TASK http://www.task.gda.pl/
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit