Post-Processing Script Won't Run

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
naqaden
Newbie
Newbie
Posts: 2
Joined: March 29th, 2016, 1:52 am

Post-Processing Script Won't Run

Post by naqaden »

hello :) and thanks for looking into this.

OS: Windows 8.1 Pro 64-bit
SABnzbd: 0.7.20 portable, run as administrator

Post-Process Only Verified Jobs: unchecked
Post-Processing Scripts Folder: c:\done.cmd
wiki wrote:Advanced users can specify a .cmd or .bat file (for Windows)
to keep this simple for testing, done.cmd is just:

Code: Select all

@echo off
echo done
pause
expectation: when a nzb completes, a command prompt should appear saying "done" and wait for user interaction
result: when a nzb completes, nothing happens

if I run it manually, I get the expected result. I tried it as a .bat too and there was no difference: manually it works, but with SABnzbd nothing happens.
I also tried specifying a folder containing done.cmd: c:\scripts but again there was no difference.

here are the most relevant log entries I could find:
  • 2016-03-29 02:05:29,595::INFO::[postproc:85] Saving postproc queue
    2016-03-29 02:05:29,596::INFO::[__init__:919] Saving data for postproc1.sab in C:\Program Files (x86)\SABnzbd\admin\postproc1.sab
    2016-03-29 02:05:29,596::INFO::[postproc:677] Queue has finished, launching: None (None)
the only hint of SABnzbd acknowledging my post-processing setting is when I move/delete the target from my system. when SABnzbd doesn't find it, a folder is created in its place. for example if I specify the script path as c:\done.cmd in SABnzbd, but I move c:\done.cmd to c:\scripts\done.cmd, SABnzbd will create a folder called done.cmd under c:\.

what am I missing?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Post-Processing Script Won't Run

Post by sander »

Disclaimer: I'm not a post-processing script expert, so this is from my memory:
expectation: when a nzb completes, a command prompt should appear saying "done" and wait for user interaction
result: when a nzb completes, nothing happens
SABnzb will NOT start a script automatically && out-of-the-blue; it will only start it if you or some criterium starts it. Easy way: put a NZB into the queue, and manually select the post-processing script to run after downloading.

Furthermore: you should have a DIRECTORY(not a file) as Post-Processing Scripts Folder.
naqaden
Newbie
Newbie
Posts: 2
Joined: March 29th, 2016, 1:52 am

Re: Post-Processing Script Won't Run

Post by naqaden »

would you believe in 4+ years of using SABnzbd I never noticed the script column in the queue? I should have mentioned I use the "Plush - gold" web interface but still, there it is plain as day.

here I was assuming post-processing was a global action on complete nzbs. now by setting the script for all categories, I've achieved that effect. all is working as expected. thanks sander!
Post Reply