Bug#327505: btdownloadheadless won't run without a terminal
I've contacted the upstream author about this bug and patch and they have committed this fix to CVS. I've included the reply I got from upstream below in quotes Patch incorporated in CVS. Thomas Mashos wrote: I'm a developer and user of Mythbuntu, a derivative of Ubuntu, which uses Debian as its base. One of the plugins we've packaged (MythNetTV) uses btdownloadheadless to download torrent files. This works perfectly until we try to place it in a cron job, which then fails. I've had users apply the following patch found in the Debian bug tracker, and they report that it works. I was hoping that you could apply this patch, which would then trickle down to us, fixing everyone along the way. The patch and bug report are located at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327505 Thanks, Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#327505: btdownloadheadless won't run without a terminal
On Tue, Nov 11, 2008 at 9:13 AM, Thomas Mashos [EMAIL PROTECTED] wrote: I've contacted the upstream author about this bug and patch and they have committed this fix to CVS. Sorry for the delay in getting back to you. I will definitely be incorporating this patch into the next version of bittornado. You won't have to wait for the next upstream release, which could be a long wait since releases don't seem to be coming anymore. I may wait though until Lenny is released, but not if that means missing the next Ubuntu release, so it should be in J (whatever the name is for the next Ubuntu release). Thanks for looking into this, Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#327505: btdownloadheadless won't run without a terminal
retitle 327505 btdownloadheadless won't run without a terminal tags 327505 - moreinfo tags 327505 + patch thanks As Yitzhak Grossman mentioned, redirecting stdout and stderr does not solve the problem. It is the fact that there is no terminal that causes the problem - title change. My cron entry: * *1 1 * /usr/bin/btdownloadheadless my.torrent /dev/null see also http://www.linuxquestions.org/questions/linux-software-2/btdownload.py-works-from-command-line-not-from-cron-328304/ - remove tag moreinfo My patch wipes out all the ncurses stuff, however. This makes sense for the headless client - add tag patch --- /usr/bin/btdownloadheadless.bittornado.orig 2006-10-31 02:02:07.0 +0100 +++ /usr/bin/btdownloadheadless.bittornado 2008-08-01 14:25:07.0 +0200 @@ -137,14 +137,6 @@ self.downloadTo = path def run(params): -try: -import curses -curses.initscr() -cols = curses.COLS -curses.endwin() -except: -cols = 80 - h = HeadlessDisplayer() while 1: configdir = ConfigDir('downloadheadless')