Hey, you stole my name! ::grin::
Man is this going to get confusing.
Best regards,
Andrew
------------------------------------------
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology
On 1/23/01 11:35 PM, "Andrew Hill" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm running a PHP script that uses system() to call an expect script.
>
> This expect script uses ssh2 to log into another server, and run some
> commands. At the shell prompt (bash) the expect script runs exactly as
> I'd hope.
>
> However, when I use system() in PHP to run the script, the output on the
> web browser includes lines like this:
>
> ]0;root@apache: /root[root@apache /root]#
>
> I'd hope to see something like this instead of the above:
>
> [root@apache /root]#
>
>
> My guess is that there is something that the shell and/or expect is
> hiding from me, that system() is displaying instead. Is there some way
> of telling system() that it should look exactly like it does in a shell,
> or to tell the shell or expect not to generate this hidden info?
>
> Any advice would be appreciated!
>
> TIA,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]