Dresden wrote:Thanks for the assistance. I tried what you have, and it's not doing anything for me. No log file is created, which leads me to believe the script is not being executed. This is what I have pasted to the very bottom of my .rtorrent.rc file:
Code: Select all
system.method.set_key=event.download.finished,filebot_amc,"execute={/home/dresden/rtorrent-postprocess,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
Does that appear to be correct?
I am not entirely sure, but from what I could google about that specific command, when executing the bash file you should also be including the bash file extension to the end of the file name.
Code: Select all
/home/dresden/rtorrent-postprocess.sh
Here's an example which I found on the rtorrent ArchWiki
Code: Select all
system.method.set_key = event.download.finished,notify_me,"execute=/path/to/mail.sh,$d.get_name="
The only major difference I can see between that code and yours, is that you never included the extension for the bash file, so it appears that it isn't being executed.
Also replace the following on the bash script, I just looked something about redirecting the log information, and the one you have might not send both the standard output and the error output.
so replace
>>$LOGFILE with
&> $LOGFILE
For more information about redirecting the files output you can go here
...HOWTO/Bash-Prog-Intro-HOWTO-3.html