[Libtorrent-devel] Multiple executions in branch

Nick Arnott narttt at gmail.com
Thu Jun 25 22:04:09 UTC 2009


My .rtorrent.rc script looks like this right now:*

schedule =
site_i,5,5,"load_start=/mnt/torrents/Torrents/Incomplete/*.torrent,d.set_directory=/mnt/torrents/Incomplete/,d.set_custom1=1,d.set_custom2=/mnt/torrents/Complete/,d.set_custom3=/mnt/torrents/Torrents/Complete/"

schedule =
site_c,5,5,"load_start=/mnt/torrents/Torrents/Complete/*.torrent,d.set_directory=/mnt/torrents/Complete/,d.set_custom1="


on_finished =
move_complete,"branch=d.get_custom1=,\"execute={mv,-u,$d.get_base_path=,$d.get_custom2=}
;execute={mv,$d.get_tied_to_file=,$d.get_custom3=} ;d.erase\""
*

My intention is to move both the .torrent file and the torrent once the
torrent finishes. The issue I'm facing is getting the branch to execute
multiple mv's.

*"branch=d.get_custom1=,\"execute={mv,-u,$d.get_base_path=,$d.get_custom2=}
;execute={mv,$d.get_tied_to_file=,$d.get_custom3=} ;d.erase\""
*
is only executing:

*mv,-u,$d.get_base_path=,$d.get_custom2=

*and not all three commands:

1.) *execute={mv,-u,$d.get_base_path=,$d.get_custom2=}
*2.) *execute={mv,$d.get_tied_to_file=,$d.get_custom3=}
*3.) *d.erase

* I have no idea how this syntax works, I'm a Linux noob. I am also aware
that this will cause an extra hash check to occur after the file is moved,
but for long file names this can be useful.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rakshasa.no/pipermail/libtorrent-devel/attachments/20090625/56f2c9fc/attachment.html


More information about the Libtorrent-devel mailing list