fileevent

From: arenaTR (arenaTR_at_comcast.net)
Date: 12/29/03


Date: Mon, 29 Dec 2003 17:33:28 -0500

I have a process I'm starting and putting into a pipe:

set pipe [open "| \"$executable_name\" \"$file\""]

after this process starts, I want to feed the executable that I'm calling
more parameters. If I use exec, another instance of the executable is
started, which is not what I want. Instead, I want to just call the same
executable and have it open the new file.

I believe that this is possible with this executable becuase in WinXP, I can
open two files separately and the both go into only one instance of the same
program.

So, I feed it a fileevent, which does nothing but open another instance:

fileevent $pipe readable $file

Is this the right construction? Thank you in advance for your help.



Relevant Pages

  • Re: Problem with exec
    ... My problem with fileevent and while is that: ... when to stop the tclsh after the processing. ... > I have lots of scripts that use the method mentioned by John and they all ... >> This is very similar to what you did with your pipe, ...
    (comp.lang.tcl)
  • Re: How to start interaction with executed program?
    ... Open a pipe to the program ... Register a read and a write script via fileevent ... All the details are on the Wiki - look for fileevent ...
    (comp.lang.tcl)
  • Re: Problem with exec
    ... environemnt is tricky. ... I will use pipe + fileevent to solve my problem. ...
    (comp.lang.tcl)
  • Re: 16" PVC pipe wanted
    ... Watch construction sites for "drops". ... You'll almost always find drops from large PVC pipe on major construction ... and screw/glue staves to their peripheries. ... This is an art of improvisation. ...
    (rec.pyrotechnics)
  • Re: Morning Smoke, FRIDAY 1/4/2008
    ... Weatherman is still calling for rain. ... with no pipe in sight yet. ...
    (alt.smokers.pipes)