I wrote a script that is doing the things you want.
# Shutdown tranmission and eventually NAS
count=$(transmission-remote --auth username:password --list | sed '1d;$d' | grep -v Done | wc -l)
if [ $count -eq 0 ]; then
transmission-remote --auth username:password --exit
sleep 10
sudo -h ...
Search found 1 match
- Thu May 16, 2013 12:03 am
- Forum: Requests
- Topic: Auto-shutdown
- Replies: 13
- Views: 70095