You must reap child processes after they complete
Include the following line after [exec ...]
wait $sim

It will work

Bala

"David N. Welton" wrote:

> Ilic Aleksandar <[EMAIL PROTECTED]> writes:
>
> > Hi, I have problems with execiting .tcl scripts from .ttml. I use
> > exec to start :
>
> > It's working fine, but that script (simulator.tcl) might need
> > several hours for execution:( and I want my ttml just to start
> > simulator and send it to background. I try with
>
> > catch {
> > set sim [exec ./simulator.tcl $VARS(proj_id) $VARS(ver) &]
> > }
>
> That looks correct
>
> > but after that simulator.tcl always becoming zombie process. Can
> > anybody help me with this?
>
> A zombie?  Are you sure?  What happens if you try launching it from a
> regular tclsh that way?
>
> #!/usr/bin/tclsh
>
> catch {
> set sim [exec ./simulator.tcl $VARS(proj_id) $VARS(ver) &]
> }
>
> exit
>
> And check its status...
>
> --
> David N. Welton
>    Consulting: http://www.dedasys.com/
> Free Software: http://people.debian.org/~davidw/
>    Apache Tcl: http://tcl.apache.org/
>      Personal: http://www.efn.org/~davidw/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to