[SOLVED] Pre-Processing Script isn't used

Get help with all aspects of SABnzbd
Forum rules
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.
Post Reply
User avatar
HashWorks
Newbie
Newbie
Posts: 5
Joined: December 21st, 2013, 10:21 am

[SOLVED] Pre-Processing Script isn't used

Post by HashWorks »

I recently created a pre-processing script and set it in the settings of sabnzbd:

Image

I set the correct rights: Image
Also I checked for syntax errors on http://www.shellcheck.net/ and tested the script with custom parameters.

However, the shell script isn't executed at all - not even my log is created. Even after a restart of Sabnzbd nothing happens.

This is my code: http://pastebin.com/DdDRZU6c

Any idea whats wrong?

Regards
Last edited by HashWorks on March 15th, 2014, 3:44 am, edited 1 time in total.
Image
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Pre-Processing Script isn't used

Post by shypike »

Did you make the script executable (chmod +x)?
Did you select the script for the nzb?
User avatar
HashWorks
Newbie
Newbie
Posts: 5
Joined: December 21st, 2013, 10:21 am

Re: Pre-Processing Script isn't used

Post by HashWorks »

shypike wrote:Did you make the script executable (chmod +x)?
Did you select the script for the nzb?
Yes, the script is executable as I already said in my first post: -rwxrwxr-x

I selected the PRE script in die settings of Sabnzbd. Do I need to select it somewhere else?

Each category has another post-script btw.


PS: sabnzbd.log is empty as well.


EDIT: I found it! Windows line breaks in file, executed dos2unix and it works... ::)
Image
Post Reply