Registered Member
|
I have been trying to start and stop Ktorrent at specific times. I have installed all packages and applications I could find that allowed to do that in a graphical enviroment.
I have installed Kcron but it does not seem to be installed nor will it run from konsole I have scheduled Ktorrent using Task Scheduler (that is now available in System Settings) and while each command works on its own (Open Ktorrent / Start torrents download / Stop torrents downloads / Quit Ktorrent) the whole schedule does not start at all. Thanks, Michel
Last edited by michelmassoud on Sat Oct 20, 2012 3:04 pm, edited 1 time in total.
|
Manager
|
what do you mean "the whole schedule does not start at all"?
kcron is now accesible as a kcm in systemsettings -> task scheduler, I don't think there's a separate gui executable per se kcron (cron) runs without the processes required to run a gui app, by Google'ing you can find a method using the display command to have it run gui apps, see https://help.ubuntu.com/community/CronH ... plications |
Registered Member
|
The tasks I have created in Task Scheduler do not run as scheduled ie Ktorrent is not launched at 00:00, Torrents downloads are not started at 00:05, Toreents downloads are not stopped at 8:00 and Ktorrent is not shutdown at 8:05. Nothing happens at all.
But when I choose "Run Now" in Task Scheduler, each of these tasks runs perfectly ie the first task does launch Ktorrent, the second will start downloads, etc... Thanks, Michel
Last edited by michelmassoud on Sat Oct 20, 2012 3:09 pm, edited 1 time in total.
|
Manager
|
what command did you execute in task scheduler?
|
Registered Member
|
The first one is: /usr/bin/ktorrent
The second is: qdbus org.ktorrent.ktorrent /core startAll The third is: qdbus org.ktorrent.ktorrent /core stopAll The fourth is: qdbus org.ktorrent.ktorrent /MainApplication quit Michel |
Manager
|
kcron (cron) runs without the processes required to run a gui app, by Google'ing you can find a method using the display command to have it run gui apps, see https://help.ubuntu.com/community/CronH ... plications
|
Manager
|
quick note - I use Kalarm for this type of things, as long as your KDE session is up and running it will work for this, just specify a command alarm
|
Registered Member
|
I understand that Kcrom is running through Task Scheduler and I will check Kalarm, but what is wrong with my Task Scheduler?
Michel |
Manager
|
cron as defaulted can only run command line apps, it can't run gui based apps as there is no defined display for the gui to interact with and Ktorrent is a gui app but it can be done from https://help.ubuntu.com/community/CronHowto
|
Registered Member
|
Thanks adding env DISPLAY=:0 made it work.
Michel |
Registered Member
|
I recently re-installed Kubuntu 12.04 64 bit in place of Kubuntu 12.04 32 bit. I have also activated the backports and upgraded to KDE 4.9.3.
My previous Schedule that consisted of running is not running properly anymore. Specifically the command
The remaining steps are still working as before ie torrents are started, stopped and the application is exiting. Any ideas on why? Michel |
Manager
|
so what doesn't happen is that the Ktorrent gui does not show when run from Kcron? could it be that the gui starts minimized in the systemtray and is one of the hidden icons
how do you know "The remaining steps are still working as before ie torrents are started, stopped and the application is exiting."? |
Registered Member
|
I looked for the icon Ktorrent but could not find it and Alt tab does not show Ktorrent. I know the remaining steps are running because when I launch Ktorrent manually, the scheduler opens the torrents and when I check the computer in the morning the program is closed.
Thnaks, Michel |
Manager
|
|
Registered Member
|
and Ktorrent is launched. I entered
Thanks, Michel |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]