Skip to content

Instantly share code, notes, and snippets.

@petrohs
Created August 20, 2020 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrohs/8e5310f8200066f1172c074b7c088b6a to your computer and use it in GitHub Desktop.
Save petrohs/8e5310f8200066f1172c074b7c088b6a to your computer and use it in GitHub Desktop.
_Kprogs¦ Matar evolution, flock, gnotify o firefox
#!/bin/bash
if [ "$1" = "evolution" ]
then
kill -9 `ps -fea | grep "/usr/bin/evolution --component=mail" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
kill -9 `ps -fea | grep " /usr/lib/evolution/" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
elif [ "$1" = "flock" ]
then
kill -9 `ps -fea | grep " /bin/sh /usr/local/bin/flock-browser" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
kill -9 `ps -fea | grep " /usr/local/progs/flock/flock-bin" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
elif [ "$1" = "gnotify" ]
then
kill -9 `ps -fea | grep " python ./notifier.py" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
kill -9 `ps -fea | grep " /bin/sh /usr/bin/gmail-notify" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
elif [ "$1" = "firefox" ]
then
kill -9 `ps -fea | grep " /usr/lib/firefox-3.0.8/firefox" | grep -v grep | tr -s " " "_" | cut -d_ -f2 | xargs`
else
echo "Mata prog que se han bloqueado";
echo " * evolution";
echo " * flock";
echo " * gnotify";
echo " * firefox";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment