Not a sabnzbd question but a linux question.
If i enter this, http://my url/sabnzbd/api?mode=pause, into a browser it will pause sabnzbd.
The question I have is how can I do the pause command from a bash script?
I've tried wget -q http://my url/sabnzbd/api?mode=pause but that just creates a file called "api?mode=pause"
How to send pause command via a bash script?
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: How to send pause command via a bash script?
How about:
Without the quotes, bash will think that the '?' is a wild-card.
Code: Select all
wget -q --delete-after "http://host:port/sabnzbd/api?mode=pause"
Re: How to send pause command via a bash script?
doesn't work
Re: How to send pause command via a bash script?
try this :
Code: Select all
curl "http://host:port/sabnzbd/api?mode=pause"
Re: How to send pause command via a bash script?
I'm sorry, but the wget works fine on my Ubuntu-8.04 server box.habskilla wrote: doesn't work
(and curl too).
Last edited by shypike on July 1st, 2008, 3:44 pm, edited 1 time in total.
Re: How to send pause command via a bash script?
Found the solution. The reason it wasn't working was because of lack of authorization. From the wiki advanced options I found the solution.
Code: Select all
wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=resume&ma_username=user&ma_password=password"
Re: How to send pause command via a bash script?
OK, I had not thought of the username/pw either, since it's optional.