Hi there,
I have a server running in the basement (Ubuntu 8.04); connecting to it through putty.
If I start a torrent download with transmissioncli and afterwards close the ssh session, how would I be able to see the status of the ongoing transfer?
Any hints appreciated, have a nice day
/Thomas
transmissioncli status how?
Re: transmissioncli status how?
Hi Thomas,
I have written a script called trstatus to do this. Just replace username and passwd with the username and password fro your server.
trstatus -l will give you a long, detailed status of the torrent(s)
trstatus -c will give you a continuous status of the torrent(s) upgraded every 1 second
trstatus without a switch will give you a one shot status of your running torrent(s)
-Joe
I have written a script called trstatus to do this. Just replace username and passwd with the username and password fro your server.
Code: Select all
#!/bin/sh
NAME=`/usr/bin/basename $0`
USAGE="$NAME [-c] [-l]"
if [ $# -eq 0 ]
then
/usr/bin/transmission-remote -l -n username:passed
elif [ $# -eq 1 ]
then
case $1 in
-c)
/usr/bin/watch -d -n 1 /usr/bin/transmission-remote -l -n username:passwd
;;
-l)
/usr/bin/transmission-remote -tall -i -n username:passwd
;;
*)
echo "$1 is an unknown option. Try $NAME alone or $NAME -c" >&2
exit 1
;;
esac
else
echo $USAGE
fi
trstatus -c will give you a continuous status of the torrent(s) upgraded every 1 second
trstatus without a switch will give you a one shot status of your running torrent(s)
-Joe
Re: transmissioncli status how?
Thanks for the effort, Joe, but I can't seem to get it to work on my machine.
Looks like trstatus is dependent on the transmission daemon running, right?
Any other tips?
/Thomas
Looks like trstatus is dependent on the transmission daemon running, right?
Code: Select all
tbesand@VoresServer:~$ transmission-remote -l
transmission-remote: failed to connect to socket file: /home/tbesand/.transmission/daemon/socket: No such file or directory
/Thomas
Re: transmissioncli status how?
tbesand: you need a newer version of Transmission for Joe's script. Judging from your "failed to connect to socket file" error message, you're using 1.22 or older.
Re: transmissioncli status how?
so where do i save the txt file containing this what extension do i give it?sunixadm wrote:Hi Thomas,
I have written a script called trstatus to do this. Just replace username and passwd with the username and password fro your server.
trstatus -l will give you a long, detailed status of the torrent(s)Code: Select all
#!/bin/sh NAME=`/usr/bin/basename $0` USAGE="$NAME [-c] [-l]" if [ $# -eq 0 ] then /usr/bin/transmission-remote -l -n username:passed elif [ $# -eq 1 ] then case $1 in -c) /usr/bin/watch -d -n 1 /usr/bin/transmission-remote -l -n username:passwd ;; -l) /usr/bin/transmission-remote -tall -i -n username:passwd ;; *) echo "$1 is an unknown option. Try $NAME alone or $NAME -c" >&2 exit 1 ;; esac else echo $USAGE fi
trstatus -c will give you a continuous status of the torrent(s) upgraded every 1 second
trstatus without a switch will give you a one shot status of your running torrent(s)
-Joe
please and thanks!