Announcement

Collapse
No announcement yet.

KCron scheduled commands not running

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KCron scheduled commands not running

    Hi All,

    I'm new to using KCron and have been trying to get it to schedule a simple command to start amarok for me "amarok -p" and it doesn't seem to be working.

    I've spent some time reading the manuals and cron seems to be running and I'm pretty sure I have the command syntax right also.

    Can someone help me troubleshoot this please?

    #2
    Re: KCron scheduled commands not running

    a simple command to start amarok for me "amarok -p" and it doesn't seem to be working.
    > [SOLVED] How can one launch Amarok with cron?

    => Try with:
    Code:
    DISPLAY=:0 amarok -p

    If that doesn't help, maybe (mailing output) > Topic: Secuirty Question About Anacron (Solved)

    I have a mail-system installed. When using KCron with the amarok -p:
    Code:
    mail
    Mail version 8.1.2 01/15/2001. Type ? for help.
    "/var/mail/rog": 1 message 1 new
    >N 1 root@ammu2500l.el Sun Jan 11 10:40 21/867 Cron <rog@Ammu2500L> amarok
    ...

    Subject: Cron <rog@Ammu2500L> amarok -p
    Content-Type: text/plain; charset=ANSI_X3.4-1968
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/home/rog>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=rog>
    Date: Sun, 11 Jan 2009 10:40:01 +0200

    : cannot connect to X server
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: KCron scheduled commands not running

      Okay that command doesn't seem to work.

      Most things seem to check up, but I'm not sure if the commands are actually being run. I'm just trying to get it to print a test string for me to see if thats the problem.

      Heres some of the output I'm getting:

      $ cat crontab
      SHELL=/bin/sh
      MAILTO=nailz
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

      # m h dom mon dow user command
      17 * * * * root cd / && run-parts --report /etc/cron.hourly
      25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
      47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
      52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
      #
      38 15 * * * nailz echo "this works!"

      $ crontab -e
      # Play music as alarm clock
      30 20,21 * * * DISPLAY:=0 amarok -p
      # Check If Program is Running
      40 11 * * * echo "The program is running"
      # This file was written by KCron. Copyright (c) 1999, Gary Meyer
      # Although KCron supports most crontab formats, use care when editing.
      # Note: Lines beginning with "#\" indicates a disabled task.

      $mail
      No mail for nailz

      $ ps aux | grep cron
      root 5368 0.0 0.1 2100 780 ? Ss Jan05 0:01 /usr/sbin/cron
      nailz 11763 0.0 1.5 31156 10256 ? S Jan11 0:08 kcron -icon kcron -miniicon kcron -caption KCron
      nailz 30254 0.0 0.1 3244 1096 pts/1 S+ 16:13 0:00 man cron
      nailz 30557 0.0 0.1 3012 776 pts/4 S+ 16:31 0:00 grep cron


      Is there anything else apart from this that could be the problem?

      Comment


        #4
        Re: KCron scheduled commands not running

        No cron is working sorry about that :-X

        Comment

        Working...
        X