On Thu, Jan 20, 2011 at 08:56:22AM +0100, Per Jessen wrote:
On Thursday, January 20, 2011 08:44:16 am C. Brouerius van Nidek wrote:
With my relative meager memory (computer ;) ) I regularly run into problems when I receive a Skype call from abroad. In case of an incoming call I kill in a hurry all the running programs one by one. I wonder if I could make a button which would kill all regularly running programs in one sweep. Is there any negative effect if I would kill KMail, Firefox and Motv with a bash file? How would such a bash file look? I am not an expert in bash, only a happy user. [ 8< ] kill $(pidof kmail) $(pidof firefox) etc etc.
man -k killall ... killall (1) - kill processes by name killproc might be more accurate as it expects the /full/path/to/executable and by this ensures you don't hit the wrong program by accident. It also has a man page and is available as /sbin/killproc Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany