Web Hosting Forums

Results 1 to 6 of 6

This is a discussion on crontab on hamster in the Hosting Talk & Chit-chat forum
Is crontab running on hamster? It hasn't kicked off my job yet. I already submitted a ticket, just wondering if other people are experiencing problems. ...

  1. #1
    Loyal Client
    Join Date
    Feb 2002
    Posts
    13

    crontab on hamster

    Is crontab running on hamster? It hasn't kicked off my job yet. I already submitted a ticket, just wondering if other people are experiencing problems.

  2. #2
    Loyal Client jkeller's Avatar
    Join Date
    Feb 2002
    Location
    Paris, France
    Posts
    1,502
    Depends on how often it's supposed to run. What's your cronjob look like?

    I'm headed out for the evening (lest you post and get no reply). But I'm sure it'd help anyone who'd reply.

    (edit)
    That said, [hamster] seems to have had a lot of config probs with cgi, so it's not inconceivable that cron is also messed up.

  3. #3
    Loyal Client
    Join Date
    Feb 2002
    Posts
    13

    As a test

    I created a dotest file that does this

    cp -f log.txt test.txt

    I changed mod to 744 and ran it manually. It worked. I deleted the test.txt file.

    set up cron to run every 5 minute. It does not run.

  4. #4
    Loyal Client jkeller's Avatar
    Join Date
    Feb 2002
    Location
    Paris, France
    Posts
    1,502
    I'm not on hamster myself, but I do have a low-key job that runs successfully on cobra every 5 minutes. I use:

    */5 * * * * (cmd)

    and it works fine.

    I'm not an expert in cronjobs, just enough to be dangerous, but is there an environment with a path variable in a cronjob? If not, then maybe your test didn't work because there wasn't an explicit path to the cp command.

    Hopefully, these ramblings were of come help. If not, maybe someone else...?

  5. #5
    Loyal Client
    Join Date
    Feb 2002
    Posts
    13
    I needed the full path to the file, not the cp command. crontab doesn't execute from the directory where the file resides.

  6. #6
    Loyal Client jkeller's Avatar
    Join Date
    Feb 2002
    Location
    Paris, France
    Posts
    1,502
    D'oh! Of course. I was all focused on something being screwy with the path to a potentially "unknown" command that I missed the obvious one. Of course, I realize now that cp is part of the base commands, so there's always supposed to be an environment variable with the path to it...

    Don't mind me, just babbling...

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
  •