Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 61710 invoked from network); 6 Aug 2002 21:48:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Aug 2002 21:48:36 -0000 Received: (qmail 16630 invoked by uid 97); 6 Aug 2002 21:48:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 16567 invoked by uid 97); 6 Aug 2002 21:48:57 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 16551 invoked by uid 98); 6 Aug 2002 21:48:57 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Kevin Jones" To: "'Tomcat Developers List'" Subject: RE: [5] launcher/deamon Date: Tue, 6 Aug 2002 22:45:45 +0100 Message-ID: <005001c23d92$a0fab660$0300a8c0@milo> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3D4FDCE4.1060704@sun.com> Importance: Normal X-OriginalArrivalTime: 06 Aug 2002 21:48:30.0698 (UTC) FILETIME=[010E0CA0:01C23D93] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > I think that is an idea worth explorer. VBScript would be > nice but it is > not installed on all Windows versions. As for others, I would lean > towards finding a shell that is very small in footprint that we could > ship with an application. Perl is redistributable but fairly > large but > maybe a very minimal version can be compiled. WSH is common on Windows machines with VBScript and Jscript as standard > "start" just creates another DOS window which means your GUI > or server > application is still bound to a DOS window. As for 2>, I don't think > that this works in DOS. AFAIK, 2> on works in sh and bash > shells. Even > if stderr can be redirected, you still get an empty DOS > window hanging > around that the process is attached to. I think you may be confused here between the old DOS command prompt and the real shell that comes with Windows NT/Windows 2K and Windows XP. These all have similar functionality to bash with regards to 2> and 2>> With 'start' it depends what you're starting. If you start a windows app then there is no cmd shell hanging around. If you start a console app, you get the console for that app, with no extra command shell. Isn't this what bash does with & ? > My goal was to get rid of unnecessary DOS windows for non-console > applications. "start" does not do this. Yes it does, try it. For example I use an IDE called IDEA under WinXP. This has a batch file to start the IDE. By default the batch file calls java with a bunch of parameters and leaves a console window lying around. I've modified the batch file to 'start javaw' with a bunch of parameters, now I have no extra windows, Kevin Jones Developmentor www.develop.com > -----Original Message----- > From: Patrick Luby [mailto:patrick.luby@sun.com] > Sent: 06 August 2002 15:28 > To: Tomcat Developers List > Subject: Re: [5] launcher/deamon > > > Kevin, > > Kevin Jones wrote: > > Just a FYI > > > > > >>1. Make Tomcat 5 startup reliably on Windows (Windows batch > >>scripts are > >> notoriously flaky). > > > > > > So don't use the (crap) .bat/.cmd syntax. Remember that Windows > > supports 'real' scripting languages for the shell. You could use > > JScript of vbscript and use the Windows scripting host (I'm pretty > > sure there's even a Perl version available although that's not > > installed by default). > > > > > The other idea is to use Costin's idea of a C executable that > replaces > the very litle bit of scripting that is left in the *.bat files. The > only downside is that the build would require native compilation. > > > > > > >>2. Emulate the Unix startup on Windows (Windows has no "&" > background > >> operator like Unix and you cannot redirect stderr to an > >>output file) > > > > > > Doesn't 'start' do this, oh and you can redirect stderr (2> > or 2>> I > > think is what you want) > > > > > > > >>3. Run background applications (like Tomcat 5 or GUI applications) > >> without a DOS shell on Windows. > > > > > > See above > > My goal was to get rid of unnecessary DOS windows for non-console > applications. "start" does not do this. > > > > > > >>4. Eliminate maintainance of 2 sets of scripts (one set for > >>Windows and > >> one set for Unix). > > > > > > Can't argue with that one > > > > Kevin Jones > > Developmentor > > www.develop.com > > > > > > Patrick > > -- > ________________________________________________________________ > Patrick Luby Email: patrick.luby@sun.com > Sun Microsystems Phone: 408-276-7471 > 901 San Antonio Road, USCA14-303 > Palo Alto, CA 94303-4900 > ________________________________________________________________ > > > -- > To unsubscribe, e-mail: > unsubscribe@jakarta.apache.org> > For > additional commands, > e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: