
Script to kill applications that have been blocked you can use which brings gnome but for me it's best to mine, just make a symbolic link to /usr/bin/ enforce single copy or have tried it on gnome by using
zenity.
#!/bin/bash
#================================================
# Author: ll!z0 lliz0.lliz0@gmail.com
# Name: kill Applicatioins
# Date: vie may 16 10:20:09 2008
# Description: Script to kill applications
#================================================
nom_app=$(zenity --entry \
--window-icon=/usr/share/pixmaps/debian-logo.png\
--title="Kill Applications"\
--text="Aplication Name"\
--entry-text='')
num_pro=`ps aex | grep $nom_app | grep -v grep
| awk '{print $1}'`
if [$num_pro eq '']
then
zenity --error --text "Application: $nom_app
\n\ndoesn\'t exist!"
else
kill -9 $num_pro
zenity --info --text="Application: [$nom_app]
\n\nhas been closed!"
fi
0 Comentarios:
Publicar un comentario