Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <04F37B7EC2EE59498E80CEC7FDF7B71383FCE4@edc-exchange1.everdream.corp> From: David Byron To: "'cygwin AT cygwin DOT com'" Subject: RE: inetd desktop interaction w/o console? Date: Tue, 25 Nov 2003 12:02:26 -0800 MIME-Version: 1.0 Content-Type: text/plain On Tue, 25 Nov 2003, Brian Ford wrote: > Anyway, I know there has been lots of work around getting > windows console output from net, etc. to show up in an > rlogin, telnet, ssh, etc. window. Would hiding the console > mess this up? Also, when if ever is the console window > desireable for inetd, cygrunsrv spawned stuff, etc.? Maybe > hiding should be the default if I figure out how. > > I've got a lot of digging to do to understand any of this, > obviously. Thanks for the hand hold. I've just been wrestling with related stuff. Getting programs to start without console blink caused me to build them as Win32 apps (w/ WinMain). If I spawn them from bash (by typing in the name of the executable at the prompt), I can't see a way to print anything to the console. I can't get any combination of GetStartupInfo, GetStdHandle, CreateFile("CONOUT$"), and WriteConsole to work under pre- or post-NT. I always get Access Denied message (GetLastError() = 5). If only for --help and --version, it would be nice. Anyone know the way to get bash to set bInheritHandles to true when it spawns my process? Thanks much. -DB -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/