Results 1 to 5 of 5

Thread: How to schedule tasks to rrun regularly / on reboot?

  1. #1

    Default How to schedule tasks to rrun regularly / on reboot?

    Hello,
    I used to use kcron , which I would manage tasks by running " kcmshell4 cron" if I needed to run those tasks as root, but it appears cron/kcron (I don't know which one it really is, or if they're the same) is broken.None of the tasks run, and I get segfaults when I try to run them manually through kcron.
    Oddly enough, when I researched the issue, I couldn't find anything on kcron post-2010.

    How exactly does one go about scheduling tasks in opensuse these days?

    I'm using OS 12.3 x86_64.

    Thank you.

  2. #2

    Default Re: How to schedule tasks to rrun regularly / on reboot?

    Quote Originally Posted by HuaiDan View Post
    Hello,
    I used to use kcron , which I would manage tasks by running " kcmshell4 cron" if I needed to run those tasks as root, but it appears cron/kcron (I don't know which one it really is, or if they're the same) is broken.None of the tasks run, and I get segfaults when I try to run them manually through kcron.
    Oddly enough, when I researched the issue, I couldn't find anything on kcron post-2010.

    How exactly does one go about scheduling tasks in opensuse these days?

    I'm using OS 12.3 x86_64.

    Thank you.
    Works fine here.
    Maybe post the tasks that won't run and segfault?

    Also, to be able to setup tasks for root, you have to run kcron as root ("kdesu kcmshell4 cron"). Did you do that? (you shouldn't be able to edit root's tasks otherwise anyway)

    Is cron enabled? ("systemctl status cron")

    Kcron is just a frontend to set up cron jobs. You can directly use crontab in Konsole as well to set them up.

  3. #3
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,490

    Default Re: How to schedule tasks to rrun regularly / on reboot?

    sometimes after updates things do not run as before,
    so deleting then re-installing entries may be necessary

    for global actions, entries can be put in /etc/crontab,
    (root privileges needed)

    for user specific tasks, (kde),
    entries can be placed in, cmd
    systemsettings -caption %c
    then select as follows
    -- Sytem Administration
    --- Startup and Shutdown
    ---- Autostart and Add Program or Add Script

    hth

  4. #4
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,490

    Default Re: How to schedule tasks to rrun regularly / on reboot?

    hi,

    after a kernel update today, a script file was changed referred to in
    - System Settings
    -- System Administration
    --- Startup and Shutdown
    ---- Autostart
    ----- Script File

    on os restart the script file changes were ignored!

    on deletion of the script referenced, and then re-selected, the changes
    were recognised on the next restart

    is it correct to assume, on script file selection here

    - if 'Create as symlink' is selected changes to the script file will be active?
    - if 'Create as symlink' is deselected changes to the original script file will be ignored?

    or is something else going on?

    cheers

  5. #5

    Default Re: How to schedule tasks to rrun regularly / on reboot?

    Quote Originally Posted by keellambert View Post
    is it correct to assume, on script file selection here

    - if 'Create as symlink' is selected changes to the script file will be active?
    - if 'Create as symlink' is deselected changes to the original script file will be ignored?
    Yes, at least I think so (can't check atm):

    If it's deselected, the script will be copied to your home directory (~/.kde4/share/env/ to be precise), so changes to the original file are ignored. But you could change the copy without effects to the original file in that case.

    If it is selected, just a symlink to the original script is created in ~/.kde4/share/env/ which of course reflects all changes to the original file, since in fact it's only a pointer to the original file...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •