Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Wed, 22 Aug 2001 13:20:51 +0200 From: Corinna Vinschen To: cygdev Subject: Re: rxvt pops up console with 2001-Aug-07 shapshot Message-ID: <20010822132051.L17561@cygbert.vinschen.de> Reply-To: cygdev Mail-Followup-To: cygdev References: <20010814140130 DOT A26049 AT redhat DOT com> <20010815125949 DOT A768 AT dothill DOT com> <20010816010713 DOT A26439 AT redhat DOT com> <20010821222132 DOT A27443 AT redhat DOT com> <20010822091749 DOT I17561 AT cygbert DOT vinschen DOT de> <16746690287 DOT 20010822121806 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <16746690287.20010822121806@logos-m.ru>; from deo@logos-m.ru on Wed, Aug 22, 2001 at 12:18:06PM +0400 On Wed, Aug 22, 2001 at 12:18:06PM +0400, egor duda wrote: > i use this simple program in such cases. > > #include > > #define TITLESIZE 1024 > > int > main (int argc, char** argv) > { > HWND console; > char old_title [TITLESIZE]; > char new_title [TITLESIZE]; > if (!GetConsoleTitle (old_title, TITLESIZE)) > return 1; > sprintf (new_title, "cygwin.hide.%d", GetCurrentProcessId ()); > SetConsoleTitle (new_title); > Sleep (40); > console = FindWindow (NULL, new_title); > SetConsoleTitle (old_title); > ShowWindow (console, SW_HIDE); > } So you don't destroy the window but simply hide it, right? > KF> I think inetd and cygrunsrv shouldn't invoke AllocConsole() and > KF> the problem with windows popping up should be solved by Egor's > KF> ttyfier. > > ttyfier is designed to run interactive applications. if you want to > run, say, 'net start some_service', which creates new console in case > it's not available, it's fine. but if you'll run it with redirected > output, e.g 'tfy net start some_service >> service.log', you won't see > in service.log what you should normally expect. I don't understand what ttyfier has to do with that problem. Please enlighten me! Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.