Page 1 of 1

Post-Processing Script Won't Run

Posted: March 29th, 2016, 5:07 am
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?

Re: Post-Processing Script Won't Run

Posted: March 29th, 2016, 7:35 am
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.

Re: Post-Processing Script Won't Run

Posted: March 29th, 2016, 10:08 am
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!