[Libtorrent-devel] e-mail notification
kia.niskavaara at gmail.com
Mon Aug 25 13:13:18 UTC 2008
Is it possible to send an email that contains information about
1) when the download started
2) the name of the tracker(s)
3) the location of the downloaded file(s)
What variables are available?
Adrian Miller wrote:
> Thanks I made the changes,
> on_finished =
> then in my notify torrent script i have:-
> echo It is done|mail -s "$2" adrian@
> but i don't get the e-mail and can't see any sign in the logs that the
> mail was sent...
> if i do ./notifytorrent.sh the e-mail arrives no problem. Have i missed
> some thing?
> I use FreeBSD
> ----- Original Message ----- From: "Josef Drexler" <josef at ttdpatch.net>
> To: "Libtorrent-devel mailing list" <libtorrent-devel at rakshasa.no>
> Sent: Thursday, July 17, 2008 5:51 PM
> Subject: Re: [Libtorrent-devel] e-mail notification
>> On Jul 17, 2008, at 2:16 PM, Adrian Miller wrote:
>>> I would like my rtorrent to send a e-mail notification when a
>>> download has completed. the suggestion was:-
>>> Put it in an on_finished hook using execute=... to run a shell
>>> script that sends the email.
>>> would anyone have an example of something like this working?
>> Try this:
>> And as for the download-notify script, put it somewhere in your PATH
>> and make it executable. It can be as simple as this:
>> echo It is done|mail -s "$2" your at address
>> And using the info hash you can make it as complicated as you like,
>> using xmlrpc to get further info about the finished download. Or pass
>> that on the command line too, as you like.
>> Note that if there's a chance that the mail command doesn't return
>> immediately, you should have it run in the background, because
>> rtorrent will pause everything until the script finishes.
>> Josef Drexler
>> josef at ttdpatch.net
>> Libtorrent-devel mailing list
>> Libtorrent-devel at rakshasa.no
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database:
>> 270.5.0/1557 - Release Date: 2008/07/17 05:36 AM
> No virus found in this outgoing message.
> Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database:
> 270.5.0/1557 - Release Date: 2008/07/17 05:36 AM
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
More information about the Libtorrent-devel