Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jason Wong
On Wednesday 08 January 2003 17:28, Jean-Christian Imbeault wrote: > Marek Kilimajer wrote: > > $result = `echo | /path/prog $arg`; > > > > should work > > That didn' work ... don't know why. > > Isn't there a way to say echo "EOF"? > > There must be a way to specify the ascii or hex value for EOF

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: What prog is it anyway. It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code. If I put all the values in a file I can get the prog to work by doing: #./prog < filename It does not

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Marek Kilimajer
No, there is no such value as far as I know, you may try `/path/prog $arg < somefile`, but I doubt it will be different. What prog is it anyway. If it is passwd, I know this behaves somewhat different, but I think there is still some workaround, you should as at a linux list. Jean-Christian Imb

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: $result = `echo | /path/prog $arg`; should work That didn' work ... don't know why. Isn't there a way to say echo "EOF"? There must be a way to specify the ascii or hex value for EOF in an echo statement no? Jc -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Marek Kilimajer
$result = `echo | /path/prog $arg`; should work Jean-Christian Imbeault wrote: I am trying to use a command line program in Linux using this form: $result = `/path/prog $arg`; But this doesn't work as the program is expecting and EOF that never comes. If I use the program on the command lin

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Benjamin Niemann
- Original Message - From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 9:52 AM Subject: [PHP] EOF: how to generate one in a string > I am trying to use a command line program in Linux using this form: > > $result = `/path/prog $