On Torrent Completion in last Mac version not working

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
shoxcorp
Posts: 3
Joined: Mon Nov 15, 2010 10:08 am

On Torrent Completion in last Mac version not working

Post by shoxcorp »

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?
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: On Torrent Completion in last Mac version not working

Post by Rolcol »

Does the script have executable properties?
shoxcorp
Posts: 3
Joined: Mon Nov 15, 2010 10:08 am

Re: On Torrent Completion in last Mac version not working

Post by shoxcorp »

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
should be fine right?
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: On Torrent Completion in last Mac version not working

Post by Rolcol »

I meant, did you do this to the script?

Code: Select all

chmod u+x /path/to/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.
Post Reply