LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I use the at ---- to run ktorrent (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-use-the-at-to-run-ktorrent-4175543120/)

Azorael 05-20-2015 08:33 AM

How do I use the at ---- to run ktorrent
 
I am running fedora 20 I type: "at 1400" ENTER then the next line appears :> so I type "ktorrent" ENTER then the next line I press ctr D. My problem is when the time actually comes for this program to start at the specified time it does not. How to do i get ktorrent to propperly start at a specified time with the at command

bathory 05-20-2015 11:28 AM

Quote:

Originally Posted by Azorael (Post 5365031)
I am running fedora 20 I type: "at 1400" ENTER then the next line appears :> so I type "ktorrent" ENTER then the next line I press ctr D. My problem is when the time actually comes for this program to start at the specified time it does not. How to do i get ktorrent to propperly start at a specified time with the at command

Since it's a program that uses X, you need to specify the DISPLAY variable prior running the program. Also it's always better to use the full path to the program executable. So after running "at 1400", use:
Code:

DISPLAY=:0.0 /usr/bin/ktorrent
Regards

John VV 05-20-2015 01:57 PM

also be aware fedora 20 will go end of life in about 6 to 8 weeks
after that there will NEVER be any more support for 20


you might want to install Fedora 21
or in a few weeks install Fedora 22 when it comes out



Ktorrent is the KDE desktop GUI for torrents

the KDE desktop needs to be installed ( or most of it seeing as Fedora is VERY VERY Gnome centric )

jpollard 05-20-2015 03:57 PM

Quote:

Originally Posted by bathory (Post 5365085)
Since it's a program that uses X, you need to specify the DISPLAY variable prior running the program. Also it's always better to use the full path to the program executable. So after running "at 1400", use:
Code:

DISPLAY=:0.0 /usr/bin/ktorrent
Regards

Note: this won't work unless you are also logged in... AND are using display 0.0. My wife also uses my system so I currently have 1.0 so this command would not work for me either. It may also have a problem if the screen is locked (displays don't show until unlocked).

Since ktorrent is GUI based application, it may not start without the GUI interface directing it to start (not sure about whether it would automatically resume something that was active when it exited...)

Azorael 05-20-2015 08:05 PM

Wow thank you so much i really appreciate the help!!!, it works when I type DISPLAY=:0.0 then the full path. I did try the full path without the display and that did not work.


All times are GMT -5. The time now is 11:07 AM.