Page 1 of 1

[SOLVED] Pre-Processing Script isn't used

Posted: March 14th, 2014, 5:09 pm
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

Re: Pre-Processing Script isn't used

Posted: March 15th, 2014, 1:23 am
by shypike
Did you make the script executable (chmod +x)?
Did you select the script for the nzb?

Re: Pre-Processing Script isn't used

Posted: March 15th, 2014, 2:48 am
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... ::)