Reply to Re: 'echo "": No such file or directory" error using "exec" to pipe in PHP script

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация