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