aboutsummaryrefslogtreecommitdiff
path: root/local/bin/annoyme
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-08-18 00:02:08 +0200
committerKarel Kočí <cynerd@email.cz>2016-08-18 00:02:08 +0200
commitb8e124cf9f04774250a68ec4585c72b1ebd22ddd (patch)
tree1ebbeaeb59142fed0ad5c60a9e591b3d69db0620 /local/bin/annoyme
parent1885ba862ffa2f61808bcead3b66023619ea58f0 (diff)
downloadmyconfigs-b8e124cf9f04774250a68ec4585c72b1ebd22ddd.tar.gz
myconfigs-b8e124cf9f04774250a68ec4585c72b1ebd22ddd.tar.bz2
myconfigs-b8e124cf9f04774250a68ec4585c72b1ebd22ddd.zip
Add suncemail and annoyme
Diffstat (limited to 'local/bin/annoyme')
-rwxr-xr-xlocal/bin/annoyme17
1 files changed, 17 insertions, 0 deletions
diff --git a/local/bin/annoyme b/local/bin/annoyme
new file mode 100755
index 0000000..99c6392
--- /dev/null
+++ b/local/bin/annoyme
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+DOT_ANNOYME=~/.annoyme
+
+for NAME in `ls | grep -E '.pid$' | sed 's/\.pid$//'`; do
+ echo -e "\033[0;31m$NAME:\033[0m" `cat "$DOT_ANNOYME/$NAME.desc"`
+ echo -ne "\033[0;1m Y/n: \033[0;0m"
+ read
+ if [[ $REPLY =~ ^[Yy]?$ ]]; then
+ if $DOT_ANNOYME/$NAME.script > "$DOT_ANNOYME/$NAME.out"; then
+ kill -SIGUSR1 `cat $NAME.pid`
+ else
+ kill -SIGUSR2 `cat $NAME.pid`
+ fi
+ fi
+ echo
+done