Posted by Alan Anderson on 12/02/06 01:26
"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.
Navigation:
[Reply to this message]
|