command since you won' be sitting in front of the computer that is running the programit' good idea to use the logging functions (see to write text file log that you can check if errors come up qbittorrent (as well as other bittorrent applicationshas feature where it can quit automatically after the download completes explains how you can determine when launched application has quit with the wait(method for popen objects the wait(method call will block until qbittorrent has stoppedand then your program can email or text you notification that the download has completed there are lot of possible features you could add to this project if you get stuckyou can download an example implementation of this program from sending email and text messages