LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Andrew Hill <list@fornax.net>
  To  : <linuxsa@linuxsa.org.au>
  Date: Tue, 23 Jan 2001 17:17:05 +1030

Expect script called from PHP

Hi all,

This is driving me nuts. I have two expect scripts that I am calling
from PHP. They are both called with the construct:

  system(EscapeShellCmd("./script.exp"));

where script.exp is the appropriate script. When they run, I get some
nice output from my PHP script. However, in one of the scripts, the "["
character is appearing as "ESC\]0;" (I think - it shows as a space or a
square depending on browser), so somehow it's not getting escaped
somewhere?

Does anyone have any ideaa? I can't see what the difference is between
the two scripts to make it appear like this....

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