Version 2 ;-)
#!/bin/bash
#delete seeds
USER=xxxxxxxx
PASSWD=xxxxxxxxxx
torrent_ids=$(/usr/local/bin/transmission-remote -n $USER:$PASSWD -l | awk '{ if ($2 == "100%") print $1 }' | sed 's/*$//')
for index in $torrent_ids; do
/usr/local/bin/transmission-remote -n $USER:$PASSWD -t $index ...
Search found 4 matches
- Tue Jan 18, 2011 11:40 pm
- Forum: General
- Topic: Auto tidyup
- Replies: 7
- Views: 5450
- Tue Jan 18, 2011 11:37 pm
- Forum: General
- Topic: Auto tidyup
- Replies: 7
- Views: 5450
Re: Auto tidyup
Thanks for that! Had not thought of the "100%" in the filename thing. That was what I had first but didnt think of piping in through sed 

- Tue Jan 18, 2011 8:11 pm
- Forum: General
- Topic: Auto tidyup
- Replies: 7
- Views: 5450
Re: Auto tidyup
Hi
Yea I went with that to start but sometimes had an * at the end of the torrent id.
Yea I went with that to start but sometimes had an * at the end of the torrent id.
- Tue Jan 18, 2011 7:59 pm
- Forum: General
- Topic: Auto tidyup
- Replies: 7
- Views: 5450
Auto tidyup
Hello all,
I have installed freeNAS and using Transmission & Sick Beard together. As Sick Beard moves completed downloads to new file structure I was always cleaning up completed downloads so knocked up a little script that I cron every 30 mins. Works a treat so thought I would share
#!/bin/bash ...
I have installed freeNAS and using Transmission & Sick Beard together. As Sick Beard moves completed downloads to new file structure I was always cleaning up completed downloads so knocked up a little script that I cron every 30 mins. Works a treat so thought I would share
#!/bin/bash ...