Re: Odd output from system()

From: Date: Wed, 24 Jan 2001 04:54:21 +0000
Subject: Re: Odd output from system()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36329@lists.php.net to get a copy of this message
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" <list@fornax.net> 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,

« previous php.general (#36329) next »