- Code: Select all
./S89SABnzbd start
It would give me an error of file not found.
- Code: Select all
#!/opt/bin/bash
case "$1" in
start)
echo "Starting SABnzbd."
/opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini -d
stop)
echo "Shutting down SABnzbd."
wget -q --delete-after "http://192.168.1.118:8080/sabnzbd/api?mode=shutdown&ma_username=xxxxx&ma_password=xxxxxx&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
I just x'd out my user/password and API key.




