LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Andrew Hill <list@fornax.net>
  To  : <linuxsa@linuxsa.org.au>
  Date: Wed, 31 Jan 2001 15:55:33 +1030

Re: Expect script called from PHP

Andrew Hill wrote:
> The expect script logs into a remote machine using ssh, and then the
> shell prompt in the web browser output includes:
> 
> ]0;root@apache: /root[root@apache /root]#
> 
> So, my guess is that normally, shell/expect is hiding some info from me
> that PHP is not, thus it displaying in the web browser.
> 
> Does anyone have some idea as to what this may be, and how I can turn it
> off?

Ah ha!

I have been given some very useful info, and have discovered this
environment variable:

  PROMPT_COMMAND=echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"

That's my problem. Hopefully a combination of "export" and the log_user
command in expect will result in more reasonable output in PHP.

Cheers,
-- 
Andrew Hill

"Right now, I'd happily snort gunk from the sink if it would take
my brain somewhere away from here...." - JB

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page