blob: e2b28af008a968e738641c4a48b2051644431865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|