Article View: borland.public.cppbuilder.nativeapi
Article #12167Re: redirect stdin
From: Michel Leunen
Date: Wed, 24 Dec 2003 11:12
Date: Wed, 24 Dec 2003 11:12
23 lines
1871 bytes
1871 bytes
Arthur Jelsma wrote: > How would you typically handle a console window for > "ftp a.b.c.d" where the app handles the username and > password using stdin? I have no problems using stdout > with "netstat -an", for instance, but I must be missing > something for stdin. I created pipes for stdout, > stdin, and stderr and assigned the handles but the console > application hangs. Never done this but have a look at: http://www.codeproject.com/dialog/quickwin.asp?target=quickwin It's a complete application which handles stdin and stdout. it seems to be what you're looking for. Michel -- ---------------------------------------- Michel Leunen mailto:michel@leunen.com C++Builder, C++BuilderX, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<3fe97484@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe785e9$1@newsgroups.borland.com> <3fe82715@newsgroups.borland.com> <3fe8b95f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba86b8c6dd456663 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-24 03:39:27 PST Date: Wed, 24 Dec 2003 12:12:04 +0100 From: Michel Leunen <mleu@STOPSPAMskynet.be> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: redirect stdin References: <3fe785e9$1@newsgroups.borland.com> <3fe82715@newsgroups.borland.com> <3fe8b95f@newsgroups.borland.com> In-Reply-To: <3fe8b95f@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.240.73.60 Message-ID: <3fe97484@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072264324 81.240.73.60 (24 Dec 2003 03:12:04 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail