transmissioncli status how?

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
tbesand
Posts: 2
Joined: Sat Nov 08, 2008 8:27 am

transmissioncli status how?

Post by tbesand »

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
sunixadm
Posts: 12
Joined: Mon Oct 27, 2008 12:18 pm

Re: transmissioncli status how?

Post by sunixadm »

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.

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 -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
tbesand
Posts: 2
Joined: Sat Nov 08, 2008 8:27 am

Re: transmissioncli status how?

Post by tbesand »

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?

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
Any other tips?

/Thomas
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: transmissioncli status how?

Post by Jordan »

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.
joubin
Posts: 1
Joined: Thu Feb 26, 2009 4:58 am

Re: transmissioncli status how?

Post by joubin »

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.

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 -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
so where do i save the txt file containing this what extension do i give it?
please and thanks!
Post Reply