Professional Web Applications Themes

cron - Linux / Unix Administration

Hello everybody Can someone please help me with the following problem: I'm trying to learn about cron and cronjobs. Working on a Ubuntu 5.04 machine. if I edit my crontab with the crontab -e command, and I enter the following line: 1-59 * * * * aterm& ,everything works fine. Why does none of the following work? 1-59 * * * * firefox& 1-59 * * * * firefox 1-59 * * * * /usr/bin/firefox& The manual pages don't seem to give me an answer to this question. Thanks a lot, Daan...

  1. #1

    Default cron

    Hello everybody

    Can someone please help me with the following problem:

    I'm trying to learn about cron and cronjobs. Working on a Ubuntu 5.04
    machine. if I edit my crontab with the crontab -e command, and I enter the
    following line:
    1-59 * * * * aterm&
    ,everything works fine. Why does none of the following work?
    1-59 * * * * firefox&
    1-59 * * * * firefox
    1-59 * * * * /usr/bin/firefox&


    The manual pages don't seem to give me an answer to this question.

    Thanks a lot,

    Daan
    noyb Guest

  2. #2

    Default Re: cron

    noyb <be> wrote:
     

    How are you defining those jobs?
    Have you checked your syslog?
    What erors do you get?
    Have you defined the DISPLAY variable in your crontab
    (ie DISPLAY=:0.0)?

    Without more infos one has to guess.

    --
    Osama says: "I'm free, what about you?"
    Uli Guest

  3. #3

    Default Re: cron

    On Wed, 02 Nov 2005 11:14:39 +0100, noyb
    <be> wrote: 
    I'm surprised that aterm will run without setting DISPLAY. Why do you
    want to start a new firefox every minute? On my machine firefox takes
    more than a minute to start, but I have an old PC.


    --
    When you're in command, command.
    -- Admiral Nimitz
    Bill Guest

  4. #4

    Default Re: cron

    Bill Mar <com> wrote:
     

    Sh*t, this i overlooked

    --
    "Every feature is a bug unless it can be turned off."

    Uli Guest

  5. #5

    Default Re: cron

    On Wed, 02 Nov 2005 13:48:12 +0100, Uli Wachowitz <de>
    wrote:
     
    >
    > How are you defining those jobs?
    > Have you checked your syslog?
    > What erors do you get?
    > Have you defined the DISPLAY variable in your crontab
    > (ie DISPLAY=:0.0)?[/ref]

    This was indeed the problem. Thanks for your help. I also found that aterm
    did work because it has a default display.

    Thanks,

    D.
    noyb Guest

Similar Threads

  1. Help with cron
    By Chris in forum Ubuntu
    Replies: 13
    Last Post: September 14th, 06:33 PM
  2. cron job
    By cljlk in forum Linux / Unix Administration
    Replies: 1
    Last Post: April 2nd, 06:50 PM
  3. cron
    By Anthony in forum Sun Solaris
    Replies: 7
    Last Post: August 27th, 12:28 PM
  4. cron
    By Richard Lynch in forum PHP Development
    Replies: 0
    Last Post: August 15th, 05:14 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139