I set the script to run via the category config, and wait for the download to finish. In the history menu, the process goes through the download, par, and unrar stages, then hangs with a status of "Running script...", and never seems to complete. Looking in the sabnzbd logs, it's clear that the script was started:
[newsunpack] Running external script D:\Shared\Usenet\scripts\showInfo.pl(etc...)
It's not likely an issue with the script hanging or getting stuck in a loop. I say that partly because CPU usage remains at idle, and partly because the script itself is trivial. At this stage I was just experimenting with what arguments were passed by sabnzbd to see what I had to work with:
Code: Select all
open OUT, ">args.log" or die "Canot open file: $!\n";
foreach (@ARGV) {
print OUT "$_\n";
}
close(OUT);
exit 1;
Some particulars:
OS: Windows 2003
Perl: 5.10
Sabnzbd: 0.4.6
Any suggestions?
-A