Search found 300 matches

by OneCD
April 13th, 2019, 12:33 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

Seems the script aborted without recording anything to file. Let's try a slight modification: #!/usr/bin/env bash #/usr/sbin/rclone sync /mnt/user/stern dropbox:misc { echo "date: $(date)" echo "PATH: $PATH" echo "EUID: $EUID" echo "which: $(which rclone)" echo "check direntry: $(ls -l /usr/sbin/nol...
by OneCD
April 13th, 2019, 12:19 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

OK, it seems the SAB post-processor hasn't run your script. There should be a second series of entries in that log file starting with a different datetime.

Can you please confirm you ran the script as a post-processor within SABnzbd?
by OneCD
April 12th, 2019, 12:37 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

Re: prefixing the path - that's exactly right. ;D OK, let's do some detective work. Please modify your shell-script so it looks like this (copy and paste it into your editor): #!/usr/bin/env bash #/usr/sbin/rclone sync /mnt/user/stern dropbox:misc { echo "date: $(date)" echo "PATH: $PATH" echo "EUID...
by OneCD
April 11th, 2019, 12:47 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

You'll need to set the execute bit again for your script. It looks like it's got a new filename. Also + enables, - disables: chmod +x /mnt/cache/apps/binhex-sabnzbdvpn/scripts/dropbox_sync.sh You might also investigate including the complete path to your 'rclone' binary. To find this: which rclone T...
by OneCD
April 11th, 2019, 12:19 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

May I suggest a change to your script?

Edit it so the first line says this:

Code: Select all

#!/usr/bin/env bash
Then try manually running your script again.
by OneCD
April 10th, 2019, 11:42 pm
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

Permissions look good. The error you’re seeing when attempting to run the shell-script is because it was written with a text-editor that didn't use the correct Unix line-ending character (LF). Instead, it’s using the standard DOS characters (CR+LF). You can either: edit in Windows but with a Unix co...
by OneCD
April 10th, 2019, 12:35 am
Forum: General Help
Topic: Failed making...all nzbs
Replies: 3
Views: 263

Re: Failed making...all nzbs

Temujin wrote:
April 9th, 2019, 7:31 pm
douchebaggery
I just learned a new word. ;D
by OneCD
April 10th, 2019, 12:30 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

Yes, I opened a terminal and typed: chmod +x /mnt/cache/apps/binhex-sabnzbdvpn/scripts/db_sync.sh After typing it, I don’t get a response; no error or nothing saying it worked. Not sure if that is normal behavior. Yes, that's the correct behaviour. Linux shells generally work on the idea that if...
by OneCD
April 9th, 2019, 12:01 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 1724

Re: Should be simple?

Is your script marked as executable? Please post the existing permissions.

When you run it at the CLI, what exactly are you typing?
by OneCD
April 5th, 2019, 2:37 pm
Forum: Post-Processing Scripts
Topic: Error with ISO unpack script
Replies: 6
Views: 531

Re: Error with ISO unpack script

I've just had a look at the p7zip IPKG installed via Entware. It's identical to the version installed with QTS except the Entware version is executed with '7za'.

Sorry, I'm out of ideas. :(
by OneCD
April 5th, 2019, 1:15 am
Forum: Post-Processing Scripts
Topic: Error with ISO unpack script
Replies: 6
Views: 531

Re: Error with ISO unpack script

@kallek, you might also check which 7zips are available. It seems QTS Busybox contains one version, but you should also have an Entware version installed. The order they are found depends on your $PATH. The 'default' is the first one found.

Code: Select all

type -a 7z
Which one is shown first?
by OneCD
April 1st, 2019, 2:23 pm
Forum: General Help
Topic: Script to change audio?
Replies: 7
Views: 428

Re: Script to change audio?

MartyIU13 wrote:
March 27th, 2019, 10:42 pm
I currently open up a cmd window and type:
Are you using Windows?
by OneCD
March 31st, 2019, 12:45 pm
Forum: General Help
Topic: category translation when adding via API?
Replies: 5
Views: 450

Re: category translation when adding via API?

Update: the NZBHydra2 dev has just added a new option to map NZB categories to NZBHydra2 categories. So, there's now another way to do this. ;)
by OneCD
March 30th, 2019, 9:02 pm
Forum: General Help
Topic: category translation when adding via API?
Replies: 5
Views: 450

Re: category translation when adding via API?

Decided to manage this with an inelegant pre-queue script: ;D #!/usr/bin/env bash [[ -z $3 ]] && exit 0 echo "1" # 0 = refuse, 1 = accept echo "$1" # name of NZB echo "$2" # post-processing flags if [[ ${3,,} =~ ^movies.* ]]; then echo "movies" elif [[ ${3,,} =~ ^tv.* ]]; then echo "tv" else echo "$...
by OneCD
March 28th, 2019, 1:07 pm
Forum: General Help
Topic: category translation when adding via API?
Replies: 5
Views: 450

Re: category translation when adding via API?

The API-call-category overrules any auto-detection and should match any of the existing categories to have it's option's applied. The API-call-category is not passed trough the Indexer-Tags matching. Ah, I see. No problem. So you should pass "movies" to the API-call, or let SABnzbd auto-match it ba...