public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* How to kill XWin from a script
@ 2004-01-26  6:18 fergus
  0 siblings, 0 replies; only message in thread
From: fergus @ 2004-01-26  6:18 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: fergus

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-26  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26  6:18 How to kill XWin from a script fergus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).