EOF: how to generate one in a string
| From: | Jean-Christian Imbeault | Date: | Wed, 08 Jan 2003 08:52:47 +0000 |
| Subject: | EOF: how to generate one in a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130725@lists.php.net to get a copy of this message | ||
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