delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/25/15:02:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <DByron AT everdreamcorp DOT com>
To: "'cygwin AT cygwin DOT com'" <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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019