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/