Re: child killed: write on pipe with no readers
- From: Ralf Fassel <ralfixx@xxxxxx>
- Date: Wed, 28 Jun 2006 19:07:44 +0200
* "Arjen Markus" <arjen.markus@xxxxxxxxxx>
| set infile [open "|lynx ..." r]
| fileevent readable $infile [list getlynx $infile]
| fconfigure $infile -buffer line
|
| proc getlynx {input} {
| ... read a line of input
| ... on end-of-file: set ::forever 1
| }
|
| vwait forever
Shouldn't that be equivalent to 'exec', since 'exec' returns the
stdout of the command as result?
man exec(n)
If standard output has not been redirected then the exec command
returns the standard output from the last command in the pipeline.
It seems to me that some info is missing here. Either 'exec' isn't
'exec', or the main program is not tclsh, or lynx isn't plain lynx,
but some wrapper which fiddles with its stdout. Or...
R'
.
- Follow-Ups:
- Re: child killed: write on pipe with no readers
- From: sai . kaki
- Re: child killed: write on pipe with no readers
- References:
- child killed: write on pipe with no readers
- From: sai . kaki
- Re: child killed: write on pipe with no readers
- From: Arjen Markus
- child killed: write on pipe with no readers
- Prev by Date: Re: Questions about Expect buffers & operation
- Next by Date: Re: text-widget and typing non-latin chars (greek again)
- Previous by thread: Re: child killed: write on pipe with no readers
- Next by thread: Re: child killed: write on pipe with no readers
- Index(es):
Relevant Pages
|
|