You are here: Re: How do you do TCL exec command on PHP script that uses user input? « PHP Programming Language « IT news, forums, messages
Re: How do you do TCL exec command on PHP script that uses user input?

Posted by Ulrich Schφbel on 11/18/05 18:37

Hi Phillip,

if your php script needs input from stdin, try open.
If it needs input from the terminal, use expect.

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация