Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcom: selecting instance to connect to...

5 views
Skip to first unread message

Volker Hetzer

unread,
Aug 30, 2006, 7:21:12 AM8/30/06
to
Hi!
We've got an applicaiton running several times in parallel and would like to
either enumerate them or to connect to a certain one.
How can I do this? Is there some kind of ID a program possesses and that can be passed
as a command line paramter to tcl and from there to tcom?

Lots of Greetings!
Volker
--
For email replies, please substitute the obvious.

suchenwi

unread,
Aug 30, 2006, 9:58:44 AM8/30/06
to

Volker Hetzer schrieb:

> How can I do this? Is there some kind of ID a program possesses and that can be passed
> as a command line paramter to tcl and from there to tcom?
>

[pid] delivers an integer process ID. How tcom can use that, I don't
know, however.

Volker Hetzer

unread,
Sep 1, 2006, 5:23:16 AM9/1/06
to
suchenwi schrieb:
Unfortunately it can't.
Ok, I'll have to think up something else...

Thanks a lot!

tomk

unread,
Sep 1, 2006, 1:24:17 PM9/1/06
to
> We've got an applicaiton running several times in parallel and would like to
> either enumerate them or to connect to a certain one.
> How can I do this? Is there some kind of ID a program possesses and that can be passed
> as a command line paramter to tcl and from there to tcom?

Is the 'application' a tcl application, or are you runing the
'application' from tcl and then talking to it using tcom, or are you
trying to connect to an 'application' that is already running using tcl
and tcom?

If your running and controlling the applications from tcl, then do the
communications at the tcl level using sockets and pass the information
into the 'application' using tcom.

Tom K.

Volker Hetzer

unread,
Sep 4, 2006, 2:41:04 PM9/4/06
to
tomk schrieb:

>> We've got an applicaiton running several times in parallel and would like to
>> either enumerate them or to connect to a certain one.
>> How can I do this? Is there some kind of ID a program possesses and that can be passed
>> as a command line paramter to tcl and from there to tcom?
>
> Is the 'application' a tcl application, or are you runing the
> 'application' from tcl and then talking to it using tcom, or are you
> trying to connect to an 'application' that is already running using tcl
> and tcom?
I'm talking to the application using tcl and tcom.

Anyway, turns out that the developers of that application faced the same
problem and their solution is to expose the handle of the main application
window, plus an internal way of cycling through all instances.

I think I can handle it now, although unfortunately it only works with
this one application. But that's ok for now.

0 new messages