get rid of dos window?
Wed Dec 12 09:46:00 GMT 2001
I had this reply to my posting (see below). I'm using this utility right
now and it works very smoothly ... actually, it runs so good it doesn't
wanna go away! :)
From: Plamen Alexandrov <firstname.lastname@example.org>
To: Armin Hartinger <email@example.com>
Subject: Re: get rid of dos window?
Date: 12 Dec 2001 15:41:24 +0200
----- Original Message -----
From: "Armin Hartinger" <firstname.lastname@example.org>
Sent: Wednesday, December 12, 2001 3:08 PM
Subject: get rid of dos window?
> Hello all,
> I've been using Cygwin/XFree86 for myself for a while now and I'm
> happy. Great work! However, I'm planning on migrating my kids and wife
> to using Linux on an Xserver on their Windoze-machines (they play
> so no way around that really) for all their internet activity. IE
> still be installed, hard to get rid of it, but the individual machines
> will not be able to connect to the outside internet.
> Anyway, to the point: I want to just throw a batch-file into the
> windows-startup folder, which starts up the X-server and subsequently,
> their Gnome-desktop starts up automatically. I'm almost there, but is
> there no way to get rid of the DOS-window which accompanies the
> application? I've looked around and asked but ppl seem to think that
> when an app sends output to STDOUT (for lack of a better term atm),
> DOS-window will stick around.
> Any way known to get rid of it?
> Sure, it's nit-picky, but I want to make the setup as newbie-friendly
> possible. After all, it's already hard enough to sell them on the new
> setup as it is ...
Free Utility: Quiet
The archives of Joeware.Net have a number of intriguing Windows 2000 and
Windows XP utilities, but one that caught my eye is a little program
Quiet ( http://home.earthlink.net/~joewarenet/win32/zips/Quiet.zip ). The
idea is simple: you use Quiet to run a program in such a way that the
program doesn't show up on the task bar, but will appear in Task Manager
any other app that you use to enumerate processes). Obviously, logging
will kill any processes spawned through Quiet.
On Wed, 2001-12-12 at 17:27, Andrew McRae wrote:
> Armin Hartinger wrote:
> > Anyway, to the point: I want to just throw a
> > batch-file into the windows-startup folder,
> > which starts up the X-server and subsequently,
> > their Gnome-desktop starts up automatically.
> > I'm almost there, but is there no way to get
> > rid of the DOS-window which accompanies the
> > X-server application?
> For what it's worth, I find the following works very well indeed for
> me. Some small variant of it will probably solve your problem.(I'm
> using the Test53 server, but I would expect this to work with any
> 1) Write a shell script that redirects stdin/stdout/stderr before
> starting the X server in the background. For example, I'm using the
> following (you'll want different arguments to
> the server):
> exec 0< /dev/null
> exec 1> ~/.xdmcp-errors
> exec 2>& 1
> X :0 -screen 0 1024 768 -xkbmap gb -nowinkill -broadcast -once &
> 2) Run that shell script in the background from a suitable Windows
> shortcut. I run the above from a "run minimized" shortcut whose
> target is:
> C:\cygwin\bin\bash.exe --login -c "~/bin/start-xdmcp&"
> (where "~/bin/start-xdmcp" is the POSIX path of the shell script).
> The DOS window appears only for as long as it takes bash to start up
> and fork off the background process, and because it's minimized, I
> usually don't even notice it. (I use a similar shortcut on the
> Windows taskbar to launch rxvt -- no ugly console windows for me!)
> 3) I have found that this (sometimes?) does not work when the CYGWIN
> environment variable includes "tty". (I think I sort of understand
> why, but I haven't looked at it carefully.)
> So I use CYGWIN="binmode ntsec".
> Andrew McRae <email@example.com>
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
More information about the Cygwin-xfree