Exec under W2K (DOS)

From: Afri (amnon.friling_at_citicorp.com)
Date: 05/26/04


Date: 26 May 2004 07:07:29 -0700

Hi

I need to call another Tcl program with arguments. Whether I use
‘exec' or ‘open', I need to call tclsh first. The line I am using in
prog1.tcl looks like this:

set x [ exec tclsh prog2.tcl arg1 arg2 ]

The problem is that I do not get the return (exit) value from prog2
and anything else that it puts to stdout.
Any ideas?

Thanks
Afri