Page 1 of 1

Postproc script: No such file or directory

Posted: January 19th, 2009, 4:16 pm
by Bascy
I'm trying to use the postproc script (just the first part in the code window below)

Code: Select all

#! /bin/bash
#
# File Extension processing script for SABNZBD+
#
VERSION=20080429

# Turn off case sensitivity for AWK
IGNORECASE=1

#  For 0.4.0x compliance, set the RUNPATH to the folder where you want to store the postproc.conf file.
#  As 0.4.x now uses a script folder, we dont want to clutter this folder up with the config and net listing files.

# For 0.3.x
#RUNPATH="`dirname "$0"`"

# For 0.4.x
RUNPATH=/root/.sabnzbd/postproc

if [ ! -f "$RUNPATH/postproc.conf" ]
        then

but the log only shows a single error message

Code: Select all

nice: /root/.sabnzbd/postproc/postproc.sh: No such file or directory
I'v tried to run it from the commandline as root, and it works. The daemon is also running as root (i know .. i know) so it should work.

Does anybody have any suggestions where to look for this?

Re: Postproc script: No such file or directory

Posted: January 19th, 2009, 4:28 pm
by shypike
1. Is the location /root/.sabnzbd/postproc/postproc.sh correct ?
2. Remove the space between the ! and /bin/bash
3. Make the script executable
      chmod +x postproc.sh

Re: Postproc script: No such file or directory

Posted: January 19th, 2009, 4:33 pm
by Bascy
1. path is corect
2. Removed the space ... trying right now
3. chmod was already done

i'll post the results soon ....

[Edit]removing the space did the trick, still strange it did work from the command line .... [/Edit]

Re: Postproc script: No such file or directory

Posted: January 20th, 2009, 2:57 am
by shypike
Bascy wrote: [Edit]removing the space did the trick, still strange it did work from the command line .... [/Edit]
When you start it from the command line, the bash shell itself handles the script.
When SABnzbd starts the script, it's the kernel that needs to recognize it as a script.
The bash shell is more forgiving than the kernel.