Search found 8 matches

by znab
March 2nd, 2009, 12:13 pm
Forum: General Help
Topic: SOLVED:Help for writing linux (Antix) shell script to shut down with SABnzbd+
Replies: 5
Views: 4346

Re: Help for writing linux (Antix) shell script to shut down with SABnzbd+

Got it working now.

Changed the settings of shutdown with chmod u+s /sbin/shutdown

then added a line /sbin/shutdown -h now in the script.
by znab
March 1st, 2009, 2:14 pm
Forum: General Help
Topic: Should a script work after each choice in "After queue finish"
Replies: 2
Views: 2495

Should a script work after each choice in "After queue finish"

Hi,

I can choose None, Unpack, Repair and Delete as actions after download. When I want to use a script in "After queue finish" does it matter which choice I make ?
Or should the script run no matter what choice I make?

Thanks
by znab
February 27th, 2009, 2:03 pm
Forum: General Help
Topic: SOLVED:Help for writing linux (Antix) shell script to shut down with SABnzbd+
Replies: 5
Views: 4346

Re: Help for writing linux (Antix) shell script to shut down with SABnzbd+

The "sudo" will fail. It wants a password. You would need to run SABnzbd as root to enable the "halt" command. This is the reason we don't support the more advanced end-of-queue actions for Posix systems. There's not general way to do it and it usually requires elevated privileg...
by znab
February 26th, 2009, 1:49 pm
Forum: General Help
Topic: SOLVED:Help for writing linux (Antix) shell script to shut down with SABnzbd+
Replies: 5
Views: 4346

Re: Help for writing linux (Antix) shell script to shut down with SABnzbd+

To shutdown sabnzbd you can use something like this: curl -s http://$SABNZBD_IP:$SABNZBD_PORT/sabnzbd/shutdown &> /dev/null Well, it's my fault I guess. I wanted to shut down my PC after SABnzb+ has finished it's queue. In a script, called SABshutdown, I have the following: #!/bin/bash # sudo h...
by znab
February 25th, 2009, 3:55 pm
Forum: General Help
Topic: SOLVED:Help for writing linux (Antix) shell script to shut down with SABnzbd+
Replies: 5
Views: 4346

SOLVED:Help for writing linux (Antix) shell script to shut down with SABnzbd+

Hello,

I would be glad to find someone who would like to help me making a "shutdown" script work.
Nice to be helped on the forum, but PM is allright too.

Thanks a lot.
by znab
February 23rd, 2009, 4:37 pm
Forum: General Help
Topic: Just one action available "On queue finish:"
Replies: 3
Views: 2507

Re: Just one action available "On queue finish:"

Your best bet is to write a user script that does the required standby or shutdown action. If you configure and provide user scripts, they will be available as end-of-queue actions. (See also: http://sabnzbd.wikidot.com/user-scripts ) Ok, I understand the reason. I've been reading the scripts part ...
by znab
February 23rd, 2009, 1:47 pm
Forum: General Help
Topic: Just one action available "On queue finish:"
Replies: 3
Views: 2507

Just one action available "On queue finish:"

Hello, I have installed SABnzbd+ version 0.4.6 on Antix (Debian linux distro, as they say ubuntu based, but that is above my knowledge of linux) and start it with a click on SABnzbd.py Formerly I used SABnzbd on a Windows machine and there was a choice to shut down the PC after the queue has finishe...