Re: EOF: how to generate one in a string
| From: | Marek Kilimajer | Date: | Wed, 08 Jan 2003 09:21:49 +0000 |
| Subject: | Re: EOF: how to generate one in a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130730@lists.php.net to get a copy of this message | ||
$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 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