Re: child killed: write on pipe with no readers



* "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'
.



Relevant Pages

  • Re: wScript.Shell Problems
    ... the completion of the underlying process. ... However, the Exec procedure is ... Here is why i went to the RUN command, it is my understanding that the ... EXEC command does not allow for the BOOLEAN indicating wether the ...
    (microsoft.public.scripting.vbscript)
  • Re: [bash] initializing a variable and simultaneously keeping terminal output
    ... I tried a lot of command lines since my last post in this thread. ... > directs only the standard output to file dirlist, ... the shell does: ... the normal shell parsing (what is done when you type "exec 3>&1" ...
    (comp.unix.shell)
  • Re: Sleep freezing
    ... >> man exec. ... > form of a standard shell pipeline where each arg becomes one ... > word of a command, and each distinct command becomes a sub- ... The word "execute" means to replace the program running in the calling ...
    (comp.unix.shell)
  • Re: Literal pipes in [open "|cmd..."]
    ... If it's not an [exec] directive, ... away with the intermediary pipe directives entirely also (or more ... As for a new command with a clean syntax, the only way you're going to ... fileevent $ou write $arg ...
    (comp.lang.tcl)
  • Re: Expect scripting
    ... I reverted to what I am familiar with which is script and used exec ... COMPL is the exact prompt from the remote processor? ... If the command were to be entered to the telnet session to this ... I strongly recommend you read.- Hide quoted text - ...
    (comp.lang.tcl)