PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 24, 2012, 05:59:42 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Task Scheduler?  (Read 360 times)
sling-shot
Hero Member
*****
Offline Offline

Posts: 638


Satyameva Jayate | Truth Alone Triumphs.


« on: January 07, 2012, 08:07:53 PM »

I was trying to set up my eth0 connection to connect at 2 am and disconnect at 8 am.

Task Scheduler as detailed here http://docs.kde.org/stable/en/kdeadmin/kcron/index.html was what I thought of for the solution.

However I am not able to find the same in System Settings as described in the page and the same is not found in the menus / Synaptic.

What am I missing here?!  Huh
-SS.
Logged

===>>> The scariest thing about Jurassic Park was that the control systems were Unix.

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/SAMSUNG 17" Syncmaster/Creative SBS370 2.1/PCLinuxOS2010/KDE4
HP Mini 110-3027TU Netbook | Nokia E6-00
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9693


----IOFLU----


« Reply #1 on: January 07, 2012, 09:01:23 PM »

I was trying to set up my eth0 connection to connect at 2 am and disconnect at 8 am.

Task Scheduler as detailed here http://docs.kde.org/stable/en/kdeadmin/kcron/index.html was what I thought of for the solution.

However I am not able to find the same in System Settings as described in the page and the same is not found in the menus / Synaptic.

What am I missing here?!  Huh
-SS.



The kdeadmin4 package, which is no longer in the repos. It should be replaced when KDE is upgraded. See here;

http://www.pclinuxos.com/forum/index.php/topic,94718.msg797770.html#msg797770
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
sling-shot
Hero Member
*****
Offline Offline

Posts: 638


Satyameva Jayate | Truth Alone Triumphs.


« Reply #2 on: January 08, 2012, 08:18:35 PM »

Thanks for the information Old-Polack.

Tex is probably busy with the 64 bit preparation. Or something is seriously wrong with KDE 4.7. KDE website says 4.7 series is concluded.

Is there any alternative to Task Scheduler?
-SS.
Logged

===>>> The scariest thing about Jurassic Park was that the control systems were Unix.

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/SAMSUNG 17" Syncmaster/Creative SBS370 2.1/PCLinuxOS2010/KDE4
HP Mini 110-3027TU Netbook | Nokia E6-00
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9693


----IOFLU----


« Reply #3 on: January 08, 2012, 08:34:30 PM »

Thanks for the information Old-Polack.

Tex is probably busy with the 64 bit preparation. Or something is seriously wrong with KDE 4.7. KDE website says 4.7 series is concluded.

Is there any alternative to Task Scheduler?
-SS.

You could try lxtask, described as, "Lightweight and desktop independent task manager."
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
sling-shot
Hero Member
*****
Offline Offline

Posts: 638


Satyameva Jayate | Truth Alone Triumphs.


« Reply #4 on: January 09, 2012, 04:45:34 AM »

I will look it up.
-SS.
Logged

===>>> The scariest thing about Jurassic Park was that the control systems were Unix.

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/SAMSUNG 17" Syncmaster/Creative SBS370 2.1/PCLinuxOS2010/KDE4
HP Mini 110-3027TU Netbook | Nokia E6-00
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5689


I don't do Windows


« Reply #5 on: January 09, 2012, 06:47:44 PM »


You could try lxtask, described as, "Lightweight and desktop independent task manager."


Unfortunately, lxtask is a task manager, like top and htop, but will not do task scheduling. Have you thought about using cron? You'd have to screate scripts for turning the ethernet port on and off using ifup eth0 and ifdown eth0, then call those scripts from cron at the specified times.
Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
sling-shot
Hero Member
*****
Offline Offline

Posts: 638


Satyameva Jayate | Truth Alone Triumphs.


« Reply #6 on: January 11, 2012, 03:47:37 PM »

I found that ifup/ifdown eth0 are the exact commands I need to run. I have verified that they work as needed from a root terminal.

I found gnome-schedule in Synaptic which according to description should work the same way. But after installing it and configuring the same commands, I have found that it does not actually run them or something. I see no change.

I have crond and fcron set to run at startup and they seem to be running according to Services and demons under PCLinuxOS Control Centre.
I have also verified that they are currently running using Ctrl-Escape > System Activity.

I am unable to proceed further.
Logged

===>>> The scariest thing about Jurassic Park was that the control systems were Unix.

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/SAMSUNG 17" Syncmaster/Creative SBS370 2.1/PCLinuxOS2010/KDE4
HP Mini 110-3027TU Netbook | Nokia E6-00
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4105

Have a nice ... night!


« Reply #7 on: January 11, 2012, 04:49:45 PM »

I found that ifup/ifdown eth0 are the exact commands I need to run. I have verified that they work as needed from a root terminal.

I found gnome-schedule in Synaptic which according to description should work the same way. But after installing it and configuring the same commands, I have found that it does not actually run them or something. I see no change.

a couple of hints:
cron jobs can be set up on a per user basis, on the other side network interfaces could have been configured to not allow to be managed from (non root) users, you performed the test as root, but I'm not sure you have set up the jobs as root, just verify about this in control center.

when I use cron, I usually enter the commands using the absolute path (/sbin/ifup, /sbin/ifdown) this will exclude any possible issue PATH related, probably not your issue, but a good advice as general rule when using cron.

from a terminal, running the command, crontab -l (the option is -L but lowercase), you will get a listing of the scheduled jobs, something like:
Quote
0 2 * * * /bin/ifup eth0
0 4 * * * /sbin/ifdown eth0

AS
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM