| Issue 71: | error found in script concerning removing torrent from transmission! | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
nothing happen.
What version of the product are you using? On what operating system?
linux-debian
Please provide any additional information below.
The error is on this line finding the torrent_id:
torrent_id=$("$torrent_daemon_bin" "$daemon_ip" -n "$daemon_l_p" -l > /dev/null 2>&1 | grep "$torrent_name" | sed "s;^ \([0-9]*\) .*;\1;")
This command consequently returns nothing..
This is because there is something wrong with the sed command.. If I remove the sed on the torrentim testing I get this:
" 8 100% 13.60 MB Done 0.0 0.0 0.00 Idle New.Atlantis.Audio.Krush.Reason.Refill-SONiTUS"
Dec 2, 2012
Sorry for my lack of updates during the last few (many) months. New job that takes most of my time, new apartment that requires a lot of work, not enough time remaining to take care of torrentexpander. Sorry for that The problem should be solved now. I'm sticking with sed because awk is not supported on every unixes Thanks for your input Addictedtoscreens
Status:
Done
|
it can be solved by this line :) torrent_id=$("$torrent_daemon_bin" "$daemon_ip" -n "$daemon_l_p" -l | grep "$torrent_name" | awk '{print $1}')