Hello,
I tried using the On Torrent Completion option that was included in the osx GUI , but the script never gets called.
Anyone else experiencing this?
On Torrent Completion in last Mac version not working
Re: On Torrent Completion in last Mac version not working
Does the script have executable properties?
Re: On Torrent Completion in last Mac version not working
Code: Select all
#! /bin/sh
CUR_DATE=`date "+%m/%d/%y %H:%M:%S"`
cd $TR_TORRENT_DIR
if [ -d "$TR_TORRENT_NAME" ]
then
if ls "$TR_TORRENT_NAME"/*.rar > /dev/null 2>&1
then
find "$TR_TORRENT_NAME" -iname "*.rar" | while read file
do
#unrar x -y "$file"
#unrar x -inul "$file"
unrar x -inul -y "$file" $TR_TORRENT_DIR$TR_TORRENT_NAME
done
echo $CUR_DATE ":: Unrarred" $TR_TORRENT_NAME "at Directory:" $TR_TORRENT_DIR$TR_TORRENT_NAME >> /Users/torrents.log
fi
fi
Re: On Torrent Completion in last Mac version not working
I meant, did you do this to the script?
chmod +x will change the executable bit for the script and allow Transmission to run it. If you just wrote the script in the text editor or downloaded it from the Internet in plain-text, it will probably not be executable.
Code: Select all
chmod u+x /path/to/script