Search found 4 matches
- September 23rd, 2011, 3:15 pm
- Forum: Post-Processing Scripts
- Topic: [BASH] Pre-processing script (or queue-filter scripts)
- Replies: 22
- Views: 36461
Re: [BASH] Pre-processing script (or queue-filter scripts)
Mar2zz Thanks for all your help. Multiple issues but finally fixed it. Didn't mention this was on a QNap box and bash wasn't the default. Had to set bash. if...then should be lower case!. Your -gt also helped. I have it working now - yay! Quick tip for those struggling and I should have done, was to...
- September 23rd, 2011, 6:12 am
- Forum: Post-Processing Scripts
- Topic: [BASH] Pre-processing script (or queue-filter scripts)
- Replies: 22
- Views: 36461
Re: [BASH] Pre-processing script (or queue-filter scripts)
Nope - didn't work
Also - the documentation in the header in the sample above says:
# outputparams (what this script tells sabnzbd)
# The script writes the results to the console, each parameter on a separate line.
# Each parameter (except 1) can be an empty line, meaning the original value.
Also - the documentation in the header in the sample above says:
# outputparams (what this script tells sabnzbd)
# The script writes the results to the console, each parameter on a separate line.
# Each parameter (except 1) can be an empty line, meaning the original value.
- September 22nd, 2011, 2:03 pm
- Forum: Post-Processing Scripts
- Topic: [BASH] Pre-processing script (or queue-filter scripts)
- Replies: 22
- Views: 36461
Re: [BASH] Pre-processing script (or queue-filter scripts)
Tried the -gt, no dice. I confirmed by echoing a string within the if statement to a file. The file logs the fact the if statement evaluation works. In the sabnzbd logs I see A bunch of lines stating that the nzb within the incomplete folder is created then 2011-09-22 20:00:53,184::INFO::[newsunpack...
- September 21st, 2011, 5:19 am
- Forum: Post-Processing Scripts
- Topic: [BASH] Pre-processing script (or queue-filter scripts)
- Replies: 22
- Views: 36461
Re: [BASH] Pre-processing script (or queue-filter scripts)
I have tried adapting the script to change to pause when size is over a threshold - however I can't get it to work. Can anyone see anythign glaringly obvious? PRIORITY=$5 SIZE=$6 IF [ $SIZE > 2791000000 ] THEN PRIORITY="-2" FI ### now tell sab what to do with nzb (note, this must be echoed...