Postproc script: No such file or directory

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
Bascy
Newbie
Newbie
Posts: 8
Joined: January 19th, 2009, 4:10 pm

Postproc script: No such file or directory

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Postproc script: No such file or directory

Post 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
Bascy
Newbie
Newbie
Posts: 8
Joined: January 19th, 2009, 4:10 pm

Re: Postproc script: No such file or directory

Post 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]
Last edited by Bascy on January 19th, 2009, 4:36 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Postproc script: No such file or directory

Post 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.
Post Reply