diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/.scripts/weechat_notify.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/.scripts/weechat_notify.sh b/scripts/.scripts/weechat_notify.sh new file mode 100755 index 0000000..e2b28af --- /dev/null +++ b/scripts/.scripts/weechat_notify.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $1 == "start" ]]; then + python2 /home/neodarz/Code/weechat_notify/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 + + + |