I've never actually written a script in Linux before so having some trouble getting this working. I'm writing a script that gets run by SABnzbd+ when a download has finished. I'm hoping to restart the service Ushare.
This is what I have got so far
#!/bin/bash
service ushare restart
echo "Script has been run"
Now for some reason unknown to me it isn't working.
These commands work fine by themself when run directly in the terminal by me.
I can't even run the script myself in the terminal though?
Any help would be great.
This is what I have got so far
#!/bin/bash
service ushare restart
echo "Script has been run"
Now for some reason unknown to me it isn't working.
These commands work fine by themself when run directly in the terminal by me.
I can't even run the script myself in the terminal though?
Any help would be great.