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 line when I am finished entering all
the data I need to hit return and then CTRL-D to give an EOF.
How can I simulate this using the backticks?
Thanks!
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] EOF: how to generate one in a string Jean-Christian Imbeault
- Re: [PHP] EOF: how to generate one in a s... Benjamin Niemann
- Re: [PHP] EOF: how to generate one in a s... Marek Kilimajer
- Re: [PHP] EOF: how to generate one in... Jean-Christian Imbeault
- Re: [PHP] EOF: how to generate on... Marek Kilimajer
- Re: [PHP] EOF: how to generat... Jean-Christian Imbeault
- Re: [PHP] EOF: how to generate on... Jason Wong
- [PHP] Re: EOF: how to generate one in a s... Jean-Christian Imbeault
- [PHP] Re: EOF: how to generate one in a s... Jean-Christian Imbeault
- RE: [PHP] Re: EOF: how to generate on... Timothy Hitchens \(HiTCHO\)
- Re: [PHP] Re: EOF: how to generate on... Matt Vos