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
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
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
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
$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
- 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 $
6 matches
Mail list logo