My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Done
Owner:  ----
Closed:  Dec 2012


 
Reported by manaf.al.nakeeb@gmail.com, Oct 20, 2012
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"
Oct 20, 2012
#1 manaf.al.nakeeb@gmail.com
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}')
Dec 2, 2012
Project Member #2 addicted...@gmail.com
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

Powered by Google Project Hosting