Make the script work

Feature requests for the Mac OS X version of Transmission
Post Reply
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Make the script work

Post by Popolani »

Hi,
I would like to receive an e-mail when a torrent is fully downloaded. I found this script in the forum :
https://trac.transmissionbt.com/browser ... nt-done.sh
I am a total newbie and I don't get this line :

# Where "nail" is installed on your system.
# We need this to actually send the mail, so make sure it's installed
NAIL=/usr/bin/nail

I think the other part is quite simple.
Any help would be much appreciated !
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Make the script work

Post by rb07 »

"nail" is "mail" in most systems (nail is obsolete, changed name to mailx), or you can use any other program that sends mail, just check the parameters.
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Re: Make the script work

Post by Popolani »

So if I am using Apple Mail, do you think this line is all right ?
NAIL=/usr/bin/mailx
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Make the script work

Post by rb07 »

If Mac OSX has mailx, and it is in that path (which I doubt), yes, but I don't use Mac OSX so I don't really know. Mac OSX probably has sendmail (not the real one, but a link to postfix if things haven't changed much with the Mac), it also should have "mail" which is part of the same package, but the script needs to be changed since those use very different parameters than the ones used in the script.

Apple Mail is an application, not a program like mailx, and it is not used on a script like the one you are trying to use.
Post Reply