Search found 17 matches

by live4soccer7
June 7th, 2016, 12:56 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Any input on dealing with obfuscated filenames? It seems like sab may get them sometimes and sometimes not. I did see the "Hunter" script, but that appears to be for Windows only folk.
by live4soccer7
June 7th, 2016, 12:54 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Of course! Here it is. Make sure to make the file executable. I did chmod 777 on it. I think you can also use chmod +x. Also, give the filename an extension of .py #!/usr/bin/python import os import sys listnotwanted = ['.nfo', '.sfv', '.nzb', '.srr', '.info', '.idx', '.txt', '.com', '.db', '.md5', ...
by live4soccer7
June 6th, 2016, 6:04 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

It worked like a charm :) Thanks again!!

Next up will be to tackle the obfuscated names. The folders seem to always get named appropriately, however the file doesn't always seem to get the naming.
by live4soccer7
June 6th, 2016, 4:57 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

It worked with just the print, so now I'll try the full implementation of it. :)
by live4soccer7
June 6th, 2016, 3:43 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

It looks like my array is too large:

IndexError: list index out of range

I'll cut it down and see if it works and then deal with that.

Edit: nvm, I was trying to run it with arg[1] in a local directory. duh....
by live4soccer7
June 6th, 2016, 3:34 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

It printed the path. Now it just bugs the heck out of me as to why bash doesn't print the variable or even work at all. I'm going to run a couple test on your script and get it implemented. I'm sure it'll work without a hitch. Thank you very much for your help!!
by live4soccer7
June 6th, 2016, 3:03 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Just to play around with a python script I did the following and have put it in post process to see if it gives me a path. #!/usr/bin/python import os import sys directory = sys.argv[1] print "go away:", directory The problem that I was running in to was sab actually passing the correct in...
by live4soccer7
June 6th, 2016, 2:30 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Thanks! I'll give it a shot and see what happens. I'm not familiar with python at all, so I'll definitely be looking a few things up to fully understand the syntax and functions.
by live4soccer7
June 6th, 2016, 1:19 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

This was the output: find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No su...
by live4soccer7
June 6th, 2016, 1:02 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

I added this in the bash script to see if it actually outputs something and what it is giving for $1

echo this is the output of sab variable.."$1"...end
echo this is a test for sab to see if it will print
by live4soccer7
June 6th, 2016, 12:39 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

I think it must be how SAB runs the script. If the script is run globally on the unraid machine and not actually within the SAB docker then that would explain why the path doesn't work. Even then, I can't get it to print $1 in the output log to see how it is formatted. If it is ran globally on the s...
by live4soccer7
June 6th, 2016, 12:14 pm
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Still the same results with the suggested changes. Hmm.... Any ideas?
by live4soccer7
June 6th, 2016, 11:16 am
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

Here is the newest feedback from SAB. This is the first time I've seen anything in the script output/log find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No such file or directory find: cannot search `': No such file or direc...
by live4soccer7
June 6th, 2016, 10:27 am
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

I apologize, I should have provided the full script. It is from the "BASH Post Processing Script" Sticky in the forum. #!/bin/bash topic1 () { GARBAGE=".nfo .sfv .nzb .srr .info .idx .txt .com .db .md5 .par2 .png .1 .jpg .jpeg .url .lnk .html .ini .bat .com .exe .scr .sample .tbn .xml...
by live4soccer7
June 6th, 2016, 3:21 am
Forum: Post-Processing Scripts
Topic: sab docker in unraid - bash script not running
Replies: 22
Views: 12763

Re: sab docker in unraid - bash script not running

This is the exact argument I'm using at this time

find "$1" -name *$junk -type f -exec rm -f -v {} \;