This is kind of complicated, hope it makes sense. I wrote a PHP script that stores some information in a file. Then my PHP script runs an Expect script I wrote that reads the file into an array and passes the information to an x3270 host via s3270. If I run my Expect script from the command prompt it runs through and works fine. If I run the Expect using PHP it quits in the same place every time, BEFORE the script is finished. It's like the Expect is sending PHP and eof(end of file) before it finishes. I've tried popen,exec,system, and passthru, they all quit in the same place. Is there any debugging I can turn on to see the communication between PHP and the script? Or any other suggestions.
Thanks in advance,
Rodney