Search found 18 matches

by LakersFan
April 13th, 2019, 12:56 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Damn, we were so close. lol
I cannot thank you enough for the help you've given me to this point. I'm sorry I didn't notify you up front of that. I'm (clearly) new to this and I guess I didn't even consider it would be a big deal.

Thanks again bro. I owe you a beer.
by LakersFan
April 13th, 2019, 12:51 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

It is running in a docker container.
by LakersFan
April 13th, 2019, 12:41 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Ok(!)(?) I ran it manually and got this: root@Tower:~# /mnt/cache/apps/binhex-sabnzbdvpn/scripts/dropbox_sync.sh root@Tower:~# cat /tmp/db-sync.log date: Fri Apr 12 22:07:40 PDT 2019 PATH: .:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin EUID: 0 which: /usr/sbin/rclone check direntry: ...
by LakersFan
April 13th, 2019, 12:31 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

To confirm, I tried it a second time. Then typed cat /tmp/db-sync.log in a terminal and again it only showed the one entry at 22:07:40
by LakersFan
April 13th, 2019, 12:28 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Here's a screenshot showing it was ran:
Image
by LakersFan
April 13th, 2019, 12:11 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Yes, they are the same. Linux 4.18.20-unRAID. Last login: Thu Apr 11 21:46:41 -0700 2019 on /dev/pts/5. root@Tower:~# /mnt/cache/apps/binhex-sabnzbdvpn/scripts/dropbox_sync.sh root@Tower:~# cat /tmp/db-sync.log date: Fri Apr 12 22:07:40 PDT 2019 PATH: .:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin...
by LakersFan
April 11th, 2019, 11:53 pm
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

I do feel close! Thanks for the tip on the permissions. I got that worked out with the +x instead of -x. I did the "which rclone" command and it came up with /usr/sbin/rclone So I changed my script to this... (not sure if that's what you meant my prefixing the path): #!/usr/bin/env bash /u...
by LakersFan
April 11th, 2019, 12:30 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

I did that and manually ran it. It ran without errors. I then tried it in SAB and got the same 127 error as before. Then I tried setting permissions again and got this??? After permissions were denied, I ran the code you gave me earlier so you can look at the permissions. root@Tower:~# chmod -x /mnt...
by LakersFan
April 11th, 2019, 12:08 am
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Okay, some progress... I did reset Notepad++ to Unix (it was on Windows by default), re-set the permissions and now I'm getting this in SAB: Exit(127) /config/scripts/dropbox_sync.sh: line 2: rclone: command not found When running from a CLI, it appears to run as it should. No response after typing ...
by LakersFan
April 10th, 2019, 11:36 pm
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Re: Should be simple?

Okay, after running the shell-script, I get: root@Tower:~# /mnt/cache/apps/binhex-sabnzbdvpn/scripts/db_sync.sh -bash: /mnt/cache/apps/binhex-sabnzbdvpn/scripts/db_sync.sh: /bin/bash^M: bad interpreter: No such file or directory And for my permissions: root@Tower:~# ls -l /mnt/cache/apps/binhex-sabn...
by LakersFan
April 9th, 2019, 10:44 pm
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

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. In a CLI, I type “rclone sync /mnt/user/stern dropbox:misc” and it works. Lastly, I...
by LakersFan
April 8th, 2019, 11:39 pm
Forum: Post-Processing Scripts
Topic: Should be simple?
Replies: 22
Views: 17522

Should be simple?

Hey folks, I have a script in unraid that works fine from a terminal, but not when used as a post-processing script in SAB. #!/bin/bash #---------------------------------------------------------------------------- # Here you can add your own custom script eg. | # rclone copy /local/path remote:path ...
by LakersFan
February 5th, 2019, 12:41 am
Forum: Post-Processing Scripts
Topic: Looking for script to convert mp3 to m4b
Replies: 4
Views: 5297

Re: Looking for script to convert mp3 to m4b

well heck if it's that easy, i'll give it a shot. I'll be back with any issues. :)
by LakersFan
February 3rd, 2019, 1:09 pm
Forum: Post-Processing Scripts
Topic: Looking for script to convert mp3 to m4b
Replies: 4
Views: 5297

Re: Looking for script to convert mp3 to m4b

Yes, ffmpeg does the conversion. I've used it in Windows and this seems to work for me:

Code: Select all

ffmpeg.exe -i %%1 -vn -c:a aac -b:a 120k -f mp4 %%1.m4b
But since Unraid is Linux based, batch files won't work.
by LakersFan
February 2nd, 2019, 8:08 pm
Forum: Post-Processing Scripts
Topic: Looking for script to convert mp3 to m4b
Replies: 4
Views: 5297

Looking for script to convert mp3 to m4b

I really wanted to try and figure this out myself, but I'm so new to this, it's really hard for me to know where to begin. I have an unraid server and am looking to create a simple(?) bash script to take a downloaded .mp3 and convert it to .m4b (iTunes audiobook). Ultimate goals would be: 1. rename ...