I would suggest you have a look at: http://expect.nist.gov/
Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -----Original Message----- > From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 8:24 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: EOF: how to generate one in a string > > > I'm at wits end ... I've tried everything from system(), > shell_exec(), > bacticks, popen() and still no go ... > > I even tried writing the data to file first and then doing a > system("./prog 2>&1 < ./datafile") and that didn't work either. > > I know that it shoudl work b/c if from the command line I > issue the same > command (using the file created by PHP) it works fine. > > Can anyone offer advice on why I can't get PHP to execute > this external > program? > > Thanks! > > Jc > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php