Close Applications by Wildcard

xclose is a simple console tool which will allow you to close all the top-level windows in your X11 session which match a particular pattern.

This may be useful if you wish to close popup adverts, or if you want to be able to programmatically kill particular clients at particular times of the day.


I was testing a particular buffer overflow which involved guessing a couple of offsets. This was a process of trial and error, so I coded up a simple perl script to test all the possible combinations. Unfortunately if the attack didn't succeed I was left with a running instance of the game, which halted the execution of my script.

This program was the result; a way of programmatically killing off any windows which had a given string in their titles.

I offer it here in case its useful to the world..


Download from the following URL: