Posted by comp.lang.tcl on 12/02/06 01:28
Alan Anderson wrote:
> "comp.lang.tcl" <phillip.s.powell@gmail.com> wrote:
>
> > Uwe Klein wrote:
> > > you may want to wrap the [exec ... ] into a catch statement like:
> > >
> > > if {[catch {exec $valPHPPath -q << $php"} retval]} {
> > > ...
> > >
> > > and see whats happening.
> > > catch is very usefull, but you may want to take some rye on the side ;-)
> > >
> > > uwe
> >
> > I wish I could see what's happening, but I have no way of ever knowing
> > what's going on
> >
> > if {[catch [exec $valPHPPath -q << $php] errMsg]} {
> > ...
>
> Look closely at the difference between what Uwe suggested and what you
> actually did. The [catch] command expects a script; you instead gave it
> the results of executing the [exec] command.
I got to the point where the PHP script that the Tcl script is calling
is somewhat stable (provided you have very tiny inputted data!), I
guess I just won't understand how to look at what Uwe did and what I
did and see the difference as your explanation doesn't make sense
either, sorry.
Phil
[Back to original message]
|