1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

Update Scripts.md (#3475)

This commit is contained in:
Petrprogs 2022-07-19 18:47:21 +03:00 committed by GitHub
parent 99ed472e0b
commit 94eeebc5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,13 +7,13 @@ macOS users may wonder whether there will be AppleScript scripts, the answer is
## How-To ## How-To
If you are interested at writing scripts for Transmission, have a look at the following pages: If you are interested at writing scripts for Transmission, have a look at the following pages:
* [wiki:man Transmission man pages] * [wiki:man Transmission man pages]
* [wiki:ConfigFiles Configuration Files] * [Configuration Files](Configuration-Files.md)
* [wiki:EditConfigFiles Editing Configuration Files] * [Editing Configuration Files](Editing-Configuration-Files.md)
* [wiki:EnvironmentVariables Environment Variables] * [Environment Variables](Environment-Variables.md)
* [wiki:rpc RPC Protocol Specification] * [RPC Protocol Specification](rpc-spec.md)
For those who need more information how to use the scripts, have a look at the following links: For those who need more information how to use the scripts, have a look at the following links:
* [https://help.ubuntu.com/community/CronHowto Cron How-To]: Run scripts at a regular interval * [Cron How-To](https://help.ubuntu.com/community/CronHowto ): Run scripts at a regular interval
## Scripts ## Scripts
### Start/Stop ### Start/Stop
@ -30,10 +30,10 @@ Transmission can be set to invoke a script when downloads complete. The environm
* `TR_TORRENT_HASH` - The torrent's info hash * `TR_TORRENT_HASH` - The torrent's info hash
* `TR_TORRENT_ID` * `TR_TORRENT_ID`
* `TR_TORRENT_LABELS` - A comma-delimited list of the torrent's labels * `TR_TORRENT_LABELS` - A comma-delimited list of the torrent's labels
* `TR_TORRENT_NAME` * `TR_TORRENT_NAME` - Name of torrent (not filename)
* `TR_TORRENT_TRACKERS` - A comma-delimited list of the torrent's trackers' announce URLs * `TR_TORRENT_TRACKERS` - A comma-delimited list of the torrent's trackers' announce URLs
[https://trac.transmissionbt.com/browser/trunk/extras/send-email-when-torrent-done.sh Here is an example script] that sends an email when a torrent finishes. [Here is an example script](https://trac.transmissionbt.com/browser/trunk/extras/send-email-when-torrent-done.sh) that sends an email when a torrent finishes.
### Obsolete ### Obsolete
Functionality of these scripts has been implemented in libtransmission and is thus available in all clients. Functionality of these scripts has been implemented in libtransmission and is thus available in all clients.
@ -44,11 +44,11 @@ Functionality of these scripts has been implemented in libtransmission and is th
* [wiki:Scripts/Scheduler Bandwidth Scheduler] * [wiki:Scripts/Scheduler Bandwidth Scheduler]
## contrib/scripts ## contrib/scripts
Tomas Carnecky (aka wereHamster) is maintaining a set of scripts in his [https://github.com/wereHamster/transmission/tree/master/contrib/scripts/ GitHub repository]. Tomas Carnecky (aka wereHamster) is maintaining a set of scripts in his [GitHub repository](https://github.com/wereHamster/transmission/tree/master/contrib/scripts/ ).
Falk Husemann (aka hxgn) is maintaining scripts in his [https://falkhusemann.de/category/tcp_ip/transmission-tcp_ip/ blog]. Falk Husemann (aka hxgn) is maintaining scripts in his [blog](https://falkhusemann.de/category/tcp_ip/transmission-tcp_ip/).
Oguz wrote [https://oguzarduc.blogspot.com/2012/05/transmission-quit-script-in-php.html on his blog] a PHP script to stop Transmission after it finishes downloading and seeding. Oguz wrote [on his blog](https://oguzarduc.blogspot.com/2012/05/transmission-quit-script-in-php.html) a PHP script to stop Transmission after it finishes downloading and seeding.
Scripts which have not yet been ported and may not work with the latest version: Scripts which have not yet been ported and may not work with the latest version:
* https://pastebin.com/QzVxQDtM: Bash - (cron)script to keep a maximum number of torrents running; starting and pausing torrents as necessary * https://pastebin.com/QzVxQDtM: Bash - (cron)script to keep a maximum number of torrents running; starting and pausing torrents as necessary
* https://github.com/jaboto/Transmission-script - (cron)script set network limits according to the number of clients in the network * https://github.com/jaboto/Transmission-script - (cron)script set network limits according to the number of clients in the network