BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Redirecting stdin...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Erik Brännlund
Guest





PostPosted: Wed Feb 25, 2004 11:25 am    Post subject: Redirecting stdin... Reply with quote



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





PostPosted: Wed Feb 25, 2004 4:25 pm    Post subject: Re: Redirecting stdin... Reply with quote



[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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.