|
Posted by comp.lang.tcl on 11/18/05 18:43
Ulrich Schöbel wrote:
> Hi Phillip,
>
> if your php script needs input from stdin, try open.
> If it needs input from the terminal, use expect.
Do you mean http://us2.php.net/manual/en/ref.expect.php ? If so, it'll
be running on PHP 4.1.2 and I have no immediate permissions to download
nor install the PECL expect library either. But something to think
about. PTY?
Phil
>
> Best regards
>
> Ulrich
>
>
> In article <1132329306.392127.205410@f14g2000cwb.googlegroups.com>,
> "comp.lang.tcl" <phillip.s.powell@gmail.com> writes:
> > The TCL command I am using will do a command-line action on a PHP
> > script:
> >
> > set cannotRunPHP [catch {
> > eval "exec php -q $root/scripts/info/php/info.php"
> > } errMsg]
> >
> > I have to do it this way as both the TCL script and the PHP script run
> > as CLI. However, "info.php" requires user input to run; this causes
> > the TCL script calling the PHP script to hose up and die.
> >
> > Is there a way I can do this so that the TCL script can call the PHP
> > script without any problems? Is there an alternate way of calling the
> > PHP script other than using exec were that to solve this issue?
> >
> > Thanks
> > Phil
> >
Navigation:
[Reply to this message]
|