qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.03k stars 3.96k forks source link

Run external program on torrent completion is not working #17839

Open itsboo07 opened 2 years ago

itsboo07 commented 2 years ago

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.

glassez commented 2 years ago

is this something to do with windows?

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

itsboo07 commented 2 years ago

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?

glassez commented 2 years ago

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.

itsboo07 commented 1 year ago

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.

luzpaz commented 1 year ago

Related to #18457