Thanks, but I don't think is quite what I'm looking for.

I have an application consisting of two parts that I'll refer to as cmdline and GUI. 
The first, cmdline, is invoked on a Unix system via the command line. In this scenario 
the user provides a list of arguments. Once invoked cmdline runs to completion. 

The second scenario, GUI, is designed to allow 100's of cmdline instances to be 
running and reporting status back to a GUI for status display. In this case the user 
provides a single parameter on the command line, a file, that contains lists of 
parameters sets the user would have passed in the first scenario. the GUI starts, 
reads the file contents and for each parameter set invokes an instance of cmdline in 
the background.

I have it working if I wrap the cmdline code and create a separate binary that I copy 
into the GUI VFS directory and wrap it. Although this works it not efficient as much 
of the code between the two applications is similar and wrapping one to pull into 
another starkit just makes the whole thing larger than it needs to be.

It would be cleaner if I could invoke the cmdline code as a Tcl procedure, but giving 
it its own processing space. tclthreads seems like it might work, but I've never used 
them an I thought there might be an easier way.

Bob

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 10:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [vtcl-user] Launching background processes


Greetings,

I think I understand what you are asking and perhaps this thread will assist:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=Pine.SOL.3.96.1000315200151.14421A-100000%40fitch.math.uwaterloo.ca&rnum=1&prev=/groups%3Fq%3Dtcl%2Bafter%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3DPine.SOL.3.96.1000315200151.14421A-100000%2540fitch.math.uwaterloo.ca%26rnum%3D1


> I know how to launch an external application from within Tcl
>
>     exec "xyz p1 p2" &
>
> but I want to know if there is a way to launch a procedure within TCL
> and have run as an independent application. This may be obvious, but I
> was having problems getting it to work correctly.
>
> Robert M. Bartis
> Lucent Technologies �
> Room HO 1C-413A (HO) / 1B-304 (WH)
> ( 732.949.4565 (HO) / 973.386.6739 (WH)
>
> * [EMAIL PROTECTED]
>
>


----------
RJEnt
Linux Solutions




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to