rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

event.download.finished Bad return code #1124

Closed JohnTM2411 closed 2 years ago

JohnTM2411 commented 2 years ago

.rtorrent.rc line method.set_key = event.download.finished, unrar, "execute2={/media/sdt1/name/bin/aiov2.sh,$d.name=}" Error Code Event 'event.download.finished' failed: Bad return code. I just want it to start my bash script with the Torrent Name as an argument when the download is finished. I already went through so many possible solutions, but nothing helped. I am desperate now. Still got my 50+ tabs open with StackOverflow, github, rtorrent-docs, reddit, ... I don't know what to search for Could somebody also please tell me how to let it create a log file?

kannibalox commented 2 years ago

That means that the command being executed exited with a non-zero code, the event itself is firing just fine. You can try calling it manually to see if anything goes obviously wrong, or you can create a log file with the log.execute command to see what's happening better.

I'd also recommend using the execute.*.bg variants once you have things sort, to avoid locking up the main thread