This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
How to kill XWin from a script
- From: <fergus at bonhard dot uklinux dot net>
- To: <cygwin-xfree at cygwin dot com>
- Cc: <fergus at bonhard dot uklinux dot net>
- Date: Mon, 26 Jan 2004 06:18:30 -0000
- Subject: How to kill XWin from a script
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: <fergus at bonhard dot uklinux dot net>
This might be well-known, in which case sorry for wasting your time.
It can be inconvenient to have one or several copies of XWin remaining after
exiting Cygwin.
You can do "kill PID" but for this you need to know what the PID is and then
type the command explicitly.
A command (or script) which will kill them all stone dead without previous
reference to ps is
kill `ps | grep XWin | awk '{print $1}'`
Put it in .bash_logout? Or wherever suits.
Fergus