[Libtorrent-devel] rTorrent - Splitting commands into multiple lines

Marco marco.tijuana at gmail.com
Sun Jun 6 14:50:28 UTC 2010


Already tried this?

system.method.set_key =event.download.finished,\
on_completion,\
"d.set_directory=$d.get_custom=movedir;\
execute=mv,-u,\
...
(make sure there's nothing between the \ and the newline (i.e. no spaces)

I guess it depends on how the file is parsed.. give it a try, maybe you're lucky.

M

On Jun 6, 2010, at 4:27 PM, Perl Whore wrote:

> I have the following in my .rtorrent.rc
> 
> system.method.set_key =
> event.download.finished,on_completion,"d.set_directory=$d.get_custom=movedir;execute=mv,-u,$d.get_base_path=,$d.get_directory=;execute=screen,-dmS,rtsbg,addtosnatch,$d.get_hash=;execute=screen,-dmS,rtsbg,addinfo,$d.get_directory=,$d.get_hash=;execute=screen,-dmS,tlogger,tlogger,$d.get_directory=,$d.get_name=;execute=screen,-dmS,vtfilesbg,mkvirtual,$d.get_directory=;d.set_custom=completion_time,\"$execute_capture={perl,-e,print,-e,time;}\""
> 
> Is it possible to separate these commands into multiple lines (one
> comment per line) for better readability?
> _______________________________________________
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
> http://rakshasa.no/mailman/listinfo/libtorrent-devel



More information about the Libtorrent-devel mailing list