mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Run external program when torrent finished not working #14901
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#14901
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bagh33r4 on GitHub (Aug 26, 2023).
qBittorrent & operating system versions
qBittorrent: 4.4.1
Operating system: Ubuntu 22.04.3 LTS
Qt: ??
libtorrent-rasterbar: ??
What is the problem?
Program never runs.
Steps to reproduce
I have this in the run external program box:
/media/storage2tb/data/bagheera/files/scan.sh
No mater if the progress reaches 100% or the torrent status turn complete my script never runs. It should even leave the terminal open waiting for input so I cant miss it but it never runs and the script never runs.
When i input the same line in a terminal it works fine and script runs. sudo not needed.
Permission r and x is open for all users all the way to the path, still not working.
Additional context
What is the definition of complete torrent? Does it need to stop seeding?
Is there something else then the path needed to make the program run?
Log(s) & preferences file(s)
No response
@thalieht commented on GitHub (Aug 26, 2023):
4.5.4 is latest.
@Bagh33r4 commented on GitHub (Aug 26, 2023):
"apt-get upgrade qbittorrent" says "qbittorrent is already the newest version (4.4.1-2)."
@Bagh33r4 commented on GitHub (Aug 26, 2023):
Was finally able to update to v4.5.4 going to test and see if it works
@Bagh33r4 commented on GitHub (Aug 26, 2023):
Still not working, same issues, script never runs.
@glassez commented on GitHub (Aug 26, 2023):
Is there something related in the log?
@Bagh33r4 commented on GitHub (Aug 26, 2023):
no, just permission issues
@UnconditionalLoop commented on GitHub (Aug 30, 2023):
A torrent is completed based on your ratio and timeout settings.
@UnconditionalLoop commented on GitHub (Aug 30, 2023):
Did your script work on the previous versions? Did you fix your file permission issue?
@glassez commented on GitHub (Aug 31, 2023):
Just noticed you want to run shell script. It isn't really executable. You should run it under some shell.
@Bagh33r4 commented on GitHub (Sep 1, 2023):
I do believe my script has run in the past, but I could be mistaken, don't remember the circumstances then. I have tried downloading a torrent with a ratio when it should finish, but that has not worked, the script never runs.
Is there a way to run a script when a torrent is finished downloading?
I am not sure, I have not been able to get a consistent result anyway. I haven't bothered about the permission issue, I don't see it as important enough to deal with it.
I have seen other run .sh files, or I am mistaken? Also, I am not experienced with Linux, this is my first Linux computer for maybe 10 years, I don't understand what you mean with "You should run it under some shell."
@TrueLogin commented on GitHub (Jan 31, 2026):
Hello.
I'm experiencing the same issue -- external program is not running.
qBittorrent
Version: qBittorrent v5.1.4 WebUI (64-bit)
OS: Debian GNU/Linux - Version: 13
Linux qbittorrent 6.17.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.17.4-2 (2025-12-19T07:49Z) x86_64 GNU/LinuxWhat is a problem?
Failed to run external program.
Logs
What is
send_tg_notification?It is a function defined in
.bashrcfile. The function runscURLto send a webhook for Telegram Bot.