Hi,
I'm using Autoshutdown plugin to shutdown my OMV machine however if I'm seeding anything using Transamission auto shutdown will not work. I've tried stopping seeding after reaching specified ratio in Transmission settings, but it didn't work. I've searched for a script that will remove comleted/downloaded torrents and found out this one:
Bash
#!/bin/sh
TORRENTLIST=`transmission-remote --auth=user:password --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited --delimiter=' ' --fields=1`
for TORRENTID in $TORRENTLIST
do
echo "* * * * * Operations on torrent ID $TORRENTID starting. * * * * *"
DL_COMPLETED=`transmission-remote --auth=user:password --torrent $TORRENTID --info | grep "Percent Done: 100%"`
if [ "$DL_COMPLETED" != "" ]; then
echo "Torrent #$TORRENTID is completed."
echo "Removing torrent from list."
transmission-remote --auth=login:password --torrent $TORRENTID --remove
else
echo "Torrent #$TORRENTID is not completed. Ignoring."
fi
echo "* * * * * Operations on torrent ID $TORRENTID completed. * * * * *"
done
Alles anzeigen
Can anyone help me how to use this script with "Script to process after torrent finishes" option on BitTorrent tab? Unfortunately I don't know how to create this script on my NAS and were to save it and what path to enter.