Code: Select all
#!/bin/bash
for i in `transmission-remote --auth USERNAME:PASSWORD -l | grep -v ID | grep -v Sum | awk '{ print $1 }'`; do
CHECK=`transmission-remote --auth USERNAME:PASSWORD -t $i -it | grep -i 'LIST\|OF\|TRACKERS'`
if [[ ! -z $CHECK ]]; then
transmission-remote --auth USERNAME:PASSWORD -t $i -SR > /dev/null 2>&1
fi
done
exit 0
Is there something wrong with the above? I'm running Transmission 2.84 (14307) in a docker (not mine), and I have a cron from the host machine that exec the bash script. I debugged and it is definitely submitting as i get the RPC success message if you remove the /dev/null.
I got up this morning and had to resume the seeding for several torrents as if it was wrong.
Here's what it says when i do an -l
Code: Select all
NAME
Id: 80
Name: *hidden*
Hash: *hidden*
Magnet: *hidden*
TRANSFER
State: Idle
Location: /completes/movies/
Percent Done: 100%
ETA: 0 seconds (0 seconds)
Download Speed: 0 kB/s
Upload Speed: 0 kB/s
Have: 733.1 MB (733.1 MB verified)
Availability: 100%
Total size: 733.1 MB (733.1 MB wanted)
Downloaded: None
Uploaded: None
Ratio: None
Corrupt DL: None
Peers: connected to 0, uploading to 0, downloading from 0
HISTORY
Date added: Mon Feb 17 12:42:55 2020
Date started: Mon Feb 17 12:42:59 2020
Seeding Time: 31 minutes (1885 seconds)
ORIGINS
Date created: Sat Sep 3 19:21:39 2011
Public torrent: No
Comment: *hidden :)*
Creator: Azureus/4.6.0.4
Piece Count: 1399
Piece Size: 512.0 KiB
LIMITS & BANDWIDTH
Download Limit: Unlimited
Upload Limit: Unlimited
Ratio Limit: Unlimited
Honors Session Limits: Yes
Peer limit: 300
Bandwidth Priority: Normal