 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Erik Brännlund Guest
|
Posted: Wed Feb 25, 2004 11:25 am Post subject: Redirecting stdin... |
|
|
Hi!
I'm trying to make a program wich takes stdout from one program stores it then
sends that data to stdin of another program. This all works except progam 2
waits for EOF forever, or at least until I kill the process.
How can I make p2 know that the file has ended. It is possible because if I do
p1 params | p2 params everything works just fine.
/Erik
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Wed Feb 25, 2004 4:25 pm Post subject: Re: Redirecting stdin... |
|
|
[email]erik.brannlund_nospam_ (AT) epl (DOT) ericsson.se[/email] wrote:
| Quote: | I'm trying to make a program wich takes stdout from one program
stores it then sends that data to stdin of another program. This all
works except progam 2 waits for EOF forever, or at least until I kill
the process.
|
Do you really need to write it yourself, or would it be enough to use an
existing tool? The common Unix utility "tee" does exactly what you
describe. Get a Windows version at http://unxutils.sourceforge.net/.
--
Rob
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|