LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-26-2008, 12:44 PM   #1
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
rtorrent - move completed files


Hey

I have a line of code in the .rtorrent.rc file that moves the completed downloads to different dir.
Code:
# Move completed downloads
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/home/torrnt/downloading/ ;d.set_directory=/netdata/torrents/done/"
I got this from http://libtorrent.rakshasa.no/

What happens is rtorrent crashes / shuts down when a torrent completes. I have to manually move the files and restart rtorrent and del the reference in the download cue.

I have had a look in the logs and there is nothing in there to speak of...

So not sure why this isn't working
I have also tried replacing the -u with -n as suggested for Unix / Mac but does make any difference.

I initially thought it was a permissions problem but have changed the permissions of that file so the owner:group belongs to the same owner:group as the rtorrent session is loaded in (unless permissions of parent folder somehow override them??).

Please let me know if you need some more info!

Thanks
G
 
Old 02-27-2008, 07:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If the app crashes on what it advertises as feature then IMHO you should run the app through 'strace', make it crash and submit output to their bug tracker.
 
Old 03-10-2008, 07:32 PM   #3
sm311ycat
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Thumbs up

ok 2 weeks late but may interest some :-)

The syntax isn't correct.
Below is probably what you need.

# Move completed downloads
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/netdata/torrents/done/ ;d.set_directory=/netdata/torrents/done/"


This is how I interpret it.
on_finished is the trigger that fired for a particular torrent when it has finished downloading.
When that happens, we perform a number of actions action we have labelled move_complete.

The move_complete will do the following 2 actions:
1. mv (in update mode) the torrent from its current directory
to a new directory
mv, -u, $d.get_base_path=, /netdata/torrents/done/

2. Once we've done the move, update the torrent's directory attribute.
d.set_directory = /netdata/torrents/done/


notes:
~~~~~~
In update mode only means that we do not overwrite an existing file
ie target file doesnt exist.
in linux we use mv -u
in ox-x we use mv -n


$d.get_base_path= is a command for getting the pathname of the torrent.

$ : command mode
d : 'd' signifies the object is a torrent
(ie we are acting on a specific torrent)
.get_base_path : torrent method, gets the pathname of the torrent
= : command terminator





caveats:
I'm not an expert. I'm still learning;
hopefully most of the above is true,
an I've cast more light than fog :-)
 
Old 03-11-2008, 04:17 AM   #4
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Original Poster
Rep: Reputation: 16
Thanks sm311ycat !

Will try this tonight when I get home...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
rtorrent - Move when download completes. Move again after seeding completes. Calab Linux - Software 1 01-29-2009 01:47 AM
rtorrent: Cannot move completed files... ackzsel Linux - Software 1 12-14-2007 12:54 PM
How do I move files without overwrite exitng files? nadavvin Linux - General 10 11-03-2006 02:49 PM
the best way to move files around..... thegreggwong Linux - Software 5 08-28-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration