diff options
author | neodarz <neodarz@neodarz.net> | 2019-09-05 07:48:16 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-09-05 07:48:16 +0200 |
commit | 9b19480228d8421c3987a634a602012c953a993e (patch) | |
tree | 4bce21766502f3a72bb2002daeea2a406c2a3bda /dotfiles/scripts/weechat_notify.sh | |
parent | 40dddc15f4a323d3c84c84be7bb2c5ca94d3c07c (diff) | |
download | dotfiles_dotdrop-9b19480228d8421c3987a634a602012c953a993e.tar.xz dotfiles_dotdrop-9b19480228d8421c3987a634a602012c953a993e.zip |
Add some scripts
Diffstat (limited to 'dotfiles/scripts/weechat_notify.sh')
-rwxr-xr-x | dotfiles/scripts/weechat_notify.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/scripts/weechat_notify.sh b/dotfiles/scripts/weechat_notify.sh new file mode 100755 index 0000000..49bef0c --- /dev/null +++ b/dotfiles/scripts/weechat_notify.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $1 == "start" ]]; then + python2 ~/.scripts/pyrnotify.py 4323 & + ssh -fNT -R 4323:localhost:4323 neodarz@neodarz.net -p 19977 +elif [[ $1 == "stop" ]]; then + sudo kill -9 $(ps aux | grep pyrnotify.py | awk '{print $2}') + sudo kill -9 $(ps aux | grep " ssh -fNT -R 4323:localhost:4323 neodarz@neodarz.net -p 19977" | awk '{print $2}') +fi + + + |