Last active
May 4, 2019 16:24
-
-
Save jfeilbach/e081860d2e7aff787f6f0a9394d12e4d to your computer and use it in GitHub Desktop.
Monitor torrent in transmission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # run on localhost | |
| export RED='\e[0;31m' | |
| export NC='\e[0m' # No Color | |
| COMMAND='/usr/bin/transmission-remote' | |
| TORRENT_ID=${1} | |
| OUTPUT="${COMMAND} -t ${TORRENT_ID} -i" | |
| TRACKER="${COMMAND} -t ${TORRENT_ID} -it | grep 'Tracker'" | |
| watch -t "${COMMAND} -t ${TORRENT_ID} -i |egrep 'Name|Percent|Upload|Download|Peers|ETA' ; \ | |
| echo "" ; \ | |
| ${COMMAND} -t ${TORRENT_ID} -if ; \ | |
| echo "" ; \ | |
| ${COMMAND} -t ${TORRENT_ID} -ip ; \ | |
| echo "" ; \ | |
| ${COMMAND} -t ${TORRENT_ID} -it" | |
| #watch "${TRACKER} ; echo "" ; ${COMMAND} -t ${TORRENT_ID} -i |egrep 'Name|Percent|Upload|Download|Peers|ETA' ; echo "" ; ${COMMAND} -t ${TORRENT_ID} -if -ip" | |
| # ${COMMAND} -t ${TORRENT_ID} -if ; \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment