Run external program on torrent completion is not working #13885

Open
opened 2026-02-22 00:26:49 -05:00 by deekerman · 5 comments
Owner

Originally created by @itsboo07 on GitHub (Oct 5, 2022).

qBittorrent & operating system versions

qBittorrent: 4.4.5 x64
Operating system: Windows 11 pro (10.0.22xxx)

What is the problem?

I created a bash script which send notification to telegram bot. if i run it with git bash it works. but in qbittorrent on download compete its not running the script.. is this something to do with windows? is their any fix?

Steps to reproduce

i need to run that scipt when download completes

Additional context

image

Log(s) & preferences file(s)

(N) 2022-10-06T01:40:05 - Torrent: YouTube Video Downloader PRO FINAL v4.9.0.3 [TechTools.NET], running external program, command: ‪C:\Program Files\qBittorrent\bot.sh
(N) 2022-10-06T01:42:34 - Options saved.

even though logs says it running external program command not sure why its not getting executed.

Originally created by @itsboo07 on GitHub (Oct 5, 2022). ### qBittorrent & operating system versions qBittorrent: 4.4.5 x64 Operating system: Windows 11 pro (10.0.22xxx) ### What is the problem? I created a bash script which send notification to telegram bot. if i run it with git bash it works. but in qbittorrent on download compete its not running the script.. is this something to do with windows? is their any fix? ### Steps to reproduce i need to run that scipt when download completes ### Additional context ![image](https://user-images.githubusercontent.com/87331871/194155672-8cce4cef-7b8e-49d6-8d31-663c10cf7a42.png) ### Log(s) & preferences file(s) (N) 2022-10-06T01:40:05 - Torrent: YouTube Video Downloader PRO FINAL v4.9.0.3 [TechTools.NET], running external program, command: ‪C:\Program Files\qBittorrent\bot.sh (N) 2022-10-06T01:42:34 - Options saved. even though logs says it running external program command not sure why its not getting executed.
Author
Owner

@glassez commented on GitHub (Oct 6, 2022):

is this something to do with windows?

It's Bash script. It should be run using Bash.

@glassez commented on GitHub (Oct 6, 2022): > is this something to do with windows? It's Bash script. It should be run using Bash.
Author
Owner

@itsboo07 commented on GitHub (Oct 8, 2022):

is this something to do with windows?

It's Bash script. It should be run using Bash.

Im able to run the bash file using git bash and it works good
but it is not runnning from qbitorrent .. is it possible to create a script to send telegram in windows?

@itsboo07 commented on GitHub (Oct 8, 2022): > > is this something to do with windows? > > It's Bash script. It should be run using Bash. Im able to run the bash file using git bash and it works good but it is not runnning from qbitorrent .. is it possible to create a script to send telegram in windows?
Author
Owner

@glassez commented on GitHub (Oct 8, 2022):

Im able to run the bash file using git bash and it works good
but it is not runnning from qbitorrent ..

So what's the problem? Just run it using bash, i.e. bash.exe your_script.sh arg1 arg2.

@glassez commented on GitHub (Oct 8, 2022): > Im able to run the bash file using git bash and it works good > but it is not runnning from qbitorrent .. So what's the problem? Just run it using bash, i.e. `bash.exe your_script.sh arg1 arg2`.
Author
Owner

@itsboo07 commented on GitHub (Dec 26, 2022):

bash.exe your_script.sh arg1 arg2

thanks for responding. not sure why this doesn't work for me in windows . created batch script and now it works. looks like i need WSL to run bash from windows.

@itsboo07 commented on GitHub (Dec 26, 2022): > bash.exe your_script.sh arg1 arg2 thanks for responding. not sure why this doesn't work for me in windows . created batch script and now it works. looks like i need WSL to run bash from windows.
Author
Owner

@luzpaz commented on GitHub (Jun 11, 2023):

Related to #18457

@luzpaz commented on GitHub (Jun 11, 2023): Related to #18457
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#13885
No description provided.