I'm having a hell of a time trying to get any kind of post-processing script to work that uses the variables passed when the processing completes (http://wiki.sabnzbd.org/user-scripts). I've broken down as far as:
#!/bin/sh
set DIR=$1
echo $1 >> /mnt/zfstest/usenet/logtest
And the only thing in the file, once the d/l completes, is a carriage return. Anyone come across this before? I'm trying to write a post script to run clamav against the directory. I tried another script that others say works under linux, but it also doesn't work.
*EDIT* Sabnzbd 0.6.10 on FreeNAS-7.2 (FreeBSD 7.3)
I've tried bash as well. Do the R/D/U tasks impact this? I have it Repair/Unpack/Delete the archives so all I'm left with in the completed directory is the output file.
A successful verification is required.
But you'd notice that, it would show a "failed" in the history.
Looks like a platform vs. Python incompatibility.
Nope, I wrote all the scripts on the FreeBSD box. Interestingly, I tried this same thing yesterday with Ubuntu 11.10 Server and the Sabnzbd out of the repository linked in these forums and got the exact same problem.
I was selecting the script from the drop down on the Download -> Queues menu. I went and added the same script to the Default category, and its working now.
The UI design there is odd if that is how its supposed to work.