![]() ![]() Code: Select all #!/bin/sh # script to check for complete torrents in transmission folder, then removes them # get torrent list from transmission-remote list # delete first / last line of output # remove leading spaces # get first field from each line TORRENTLIST=`transmission-remote -n admin:admin -list | sed -e '1d $d s/^ *//' | cut -s -d " " -f1 | sed 's/\*//'` # for each torrent in the list for TORRENTID in $TORRENTLIST do #echo "* * * * * Operations on torrent ID $TORRENTID starting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |