Script after download not firing

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
nordtorp95
Posts: 1
Joined: Wed Sep 19, 2018 7:05 pm

Script after download not firing

Post by nordtorp95 »

Hi, i cannot for the love of me get transmission to extract my rar files after download.

Im using freenas and is trying to set it up in a jail that i already have transmission up and running in.

Script looks like this:

Code: Select all

#!/bin/bash

find $TR_TORRENT_DIR/$TR_TORRENT_NAME -name “*.rar” -exec unrar e “{}” “$TR_TORRENT_DIR/$TR_TORRENT_NAME/” \;
It is located in /home/

i have changed the settings in settings.json

i have run

Code: Select all

chmod a+x /home/unrar_file.sh
chmod 777 /home/unrar_file.sh

I'm very new to bash and scripting etc. I dont know if im maybe missing some dependancy or maybe the script is bad.

I have tried looking in /bin folder and cant find bash, i dont know if this has something to do with it.

I have done pkg install bash
and pkg install unrar

the script is one i found on google.
Post Reply