Search found 7 matches

by Ambrotos
February 14th, 2009, 2:23 pm
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

I gave it a try myself, and everything seems to work ok so I should be able to continue with my scripting. Thanks for the help guys!

Any chance the ability to run perl scripts natively might make it into Sabnzbd 0.5.0? :)

-A
by Ambrotos
February 13th, 2009, 11:24 am
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

lol. Unfortunately that doesn't help when your stage gets stuck on

Code: Select all


Stage UserScript
    [USER-SCRIPT]: => Running user script D:\Shared\Usenet\scripts\showInfo.pl 

That would explain why I hadn't noticed the show output link :)

-A
by Ambrotos
February 13th, 2009, 10:14 am
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

rAf: Yes, my script has the shebang as the first line.

markus101: I hadn't thought of that. Not a really elegant solution, but I'll give it a try.

-A
by Ambrotos
February 13th, 2009, 2:15 am
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

Sander: Interestingly enough, it seems that I can execute batch files OK. I just tried a simple little... echo testing > c:\temp\scriptoutput.log ...and everything worked OK. It seems that the problem is particular to Perl. I verified that the Perl interpreter binary is in the path of the user accou...
by Ambrotos
February 12th, 2009, 7:02 pm
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

In order to verify whether the problem lies in an issue with sabnzbd's BG-running of scripts and the print statement (as proposed by markus101), I tried the following script with the exact same results: foreach (@ARGV) {     i++; } exit 1; Sabnzbd is still stuck "Running script..." as I ty...
by Ambrotos
February 12th, 2009, 2:47 pm
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Re: Perl post-processing scripts

Actually, the code I inserted into my initial description was not a cut/paste, it was short enough I just retyped it. The actual script used by sabnzbd does not use relative paths. It is supposed to open the file d:\temp\args.log. This file is never created. Also, even if the script were completed s...
by Ambrotos
February 12th, 2009, 10:44 am
Forum: Post-Processing Scripts
Topic: Perl post-processing scripts
Replies: 15
Views: 19269

Perl post-processing scripts

Given that there's plenty of discussion regarding various script types (Python, shell scripts, batch files, etc.), I assume that Sabnzbd isn't particular about the type of script executed post-processing, so long as there's an interpreter available and it receives its exit code. If true, then I wond...