My script is meant to be used interactively, e.g. via ssh.
I only use it to remove the torrents, not the files as you do (--remove-and-delete).
Only flaw i see is missing -n user:pw to CMD.
I did not add user/pw because i run transmissiond safely behind my firewall so i dont have to login in when i ...
Search found 2 matches
- Mon Oct 24, 2011 4:46 pm
- Forum: General
- Topic: remove finished torrents (bash script)
- Replies: 2
- Views: 5226
- Sun Oct 23, 2011 7:49 am
- Forum: General
- Topic: remove finished torrents (bash script)
- Replies: 2
- Views: 5226
remove finished torrents (bash script)
I just made myself a script to remove finished torrents, perhaps more people find it useful.
#!/bin/sh
FINISHED=`transmission-remote -l | grep " Finished "`
IDS=`echo "$FINISHED" | awk -v ORS=',' '{print $1}'`
CMD="transmission-remote -t$IDS -r"
echo "$FINISHED"
echo "$CMD"
read -r -n1 -p "Remove ...
#!/bin/sh
FINISHED=`transmission-remote -l | grep " Finished "`
IDS=`echo "$FINISHED" | awk -v ORS=',' '{print $1}'`
CMD="transmission-remote -t$IDS -r"
echo "$FINISHED"
echo "$CMD"
read -r -n1 -p "Remove ...