Does executing script-torrent-done block transmission?

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
meilon
Posts: 3
Joined: Sun Apr 04, 2010 10:54 pm

Does executing script-torrent-done block transmission?

Post by meilon »

Hi there,

I firstly only used script-torrent-done to run a script informing me by e-mail that a torrent finished. Now the script converts specific files and uploads it over the web. While converting and uploading I can't access the web client. Is this by design? And does the rest of transmission also stop doing anything?

In my opinion, transmission should execute my script in a separate thread so the website keeps responding.

transmission 2.12 is running on a debian headless server

-meilon
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Does executing script-torrent-done block transmission?

Post by Jordan »

It does block in 2.1x, but not in 2.2x
killemov
Posts: 573
Joined: Sat Jul 31, 2010 5:04 pm

Re: Does executing script-torrent-done block transmission?

Post by killemov »

You can solve this NOW by surrounding your script with { } &.

For example: viewtopic.php?f=1&t=10364
meilon
Posts: 3
Joined: Sun Apr 04, 2010 10:54 pm

Re: Does executing script-torrent-done block transmission?

Post by meilon »

Thank you both for your replies. I will update to 2.2x soon. For fixing this right now, do you mean my config entry should look like this:

Code: Select all

"script-torrent-done-filename": "{ /srv/transmission-emails/libevent-mail.sh >> /srv/transmission-emails/output.log 2>&1} &",
Correct?
killemov
Posts: 573
Joined: Sat Jul 31, 2010 5:04 pm

Re: Does executing script-torrent-done block transmission?

Post by killemov »

meilon wrote:Thank you both for your replies. I will update to 2.2x soon. For fixing this right now, do you mean my config entry should look like this:

Code: Select all

"script-torrent-done-filename": "{ /srv/transmission-emails/libevent-mail.sh >> /srv/transmission-emails/output.log 2>&1} &",
Correct?
Probably not. Best put the { } & inside a new script that calls the libevent-mail.sh script.
Post Reply