Typheon Posted May 11, 2011 Report Share Posted May 11, 2011 Greetings All,I am both a newcomer to this forum and the uTorrent linux server install. I am running into two problems with the state_cmd and the finish_cmd parameters in the utserver.conf file. The first problem, which I believe is my incorrectly defining the action for these commands is that I cannot seem to get the server to consistantly trigger my test script when there is a state change for a torrent.The second problem is that when I do get the state_cmd to fire off in the server (based on watching the server's output when run in a terminal) and it successfully calls my test script I am only able to grab as a variable the interger which is the torrent change of state. I cannot seem to read the string which would be the torrent name or file name.I am running:Fedora Core 14 32-bituTorrent Server alpha 25053my test bash script looks like this:#!/bin/bashecho "$1 with state $2" >> /tmp/test.logmy utserver.conf file entries for state_cmd and finish_cmd are:state_cmd: /test/test.sh %N %Sfinish_cmd: /test/test.sh %N %SThe terminal output from utserver is:Executing /test/test.sh "Torrent-Name-Blah" 2Executing /test/test.sh "Torrent-Name-Blah" 6The output in the test.log is:2 with state6 with stateI realize this is most likely something basic I'm doing incorrectly. Any assistance would be appreciated. Link to comment Share on other sites More sharing options...
Typheon Posted June 2, 2011 Author Report Share Posted June 2, 2011 Hmm, so I am gonna guess from the lack of response that this might not be a widely seen issue or that state_cmd and finish_cmd are not very often used? :/ Link to comment Share on other sites More sharing options...
TvL Posted June 16, 2011 Report Share Posted June 16, 2011 I've written a mail script (can be found on the forum here: http://forum.utorrent.com/viewtopic.php?id=100946). I've also noticed that the first argument is lost.What I did is supply an empty string as the first parameter:state_cmd: /test/test.sh '' %N %Sfinish_cmd: /test/test.sh '' %N %S Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.