[Libtorrent-devel] Using mv and execute
Josef Drexler
josef at ttdpatch.net
Thu Nov 6 12:04:25 UTC 2008
On Nov 6, 2008, at 1:38 AM, Steven Adams wrote:
> I'm trying to setup a on_finished which moves the files from a
> downloaded torrent to another folder.
>
> I want to move the files in the root folder or the downloaded
> torrent to another folder, eg
>
> mv -u /home/steve/downloaded/sometorrent/* /home/steve/torrentfiles/
>
> So i tried the following
>
> execute=mv,-u,$cat=$d.get_base_path=\,/*,$d.get_custom1=
I would probably write a shell script and pass the parameters
individually, rather than trying to figure out the right syntax to
have rtorrent concatenate them. Something like
execute=move-script.sh,$d.get_base_path=,$d.get_custom1=
Then you can pass other parameters too as you like, such as info hash
or name etc.
> but for some reason i always get a bad return code. Anyone got any
> ideas why?
As for figuring out script problems, use the execute_log option.
--
Josef Drexler
josef at ttdpatch.net
More information about the Libtorrent-devel
mailing list