Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I am attempting to run the script /home/kevin/bin/getmyemailnow every 10 minutes, i have made the following entry into my /etc/crontab on my gentoo system */10 * * * * kevin ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396

    crontab


    I am attempting to run the script /home/kevin/bin/getmyemailnow every 10 minutes, i have made the following entry into my /etc/crontab on my gentoo system
    */10 * * * * kevin /home/kevin/bin/getmyemailnow
    but it doesn't seem to run, im sure im missing some stupid permissons thing, but i can't seem to find evidence of any problems in my system logs (but i could have easily missed something) Any ideas?
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  2. #2
    Linux User
    Join Date
    Aug 2003
    Posts
    289
    do you have the service running? i always forget this.. .
    Registered User #345074

  3. #3
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    the cron service? yes, it is running. All the other jobs listed are completed.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    qub333,

    A couple of things. First, I think you have it set to run every day at hour ten (10:00 am). I thought the syntax was minute hour. I could be wrong about that, and maybe that's what the */10 is. Why not just use 10,20,30,40,50 * * * * ? Also, you have Kevin in there before your command and I don't get why. Will it work if you take that out? One more thing... Are you in cron.allow and not in cron.deny?

    Cron has always been like 50x more difficult then it needs to be.
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  6. #5
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    i thought a user had to be declared, as for the kevin, ill check the time syntax and see how that goes.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  7. #6
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    Oops, I edited this after you saw it.

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  8. #7
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    The time syntax is correct. */10 will run every ten minutes. You have to specify the user that the job is to run under...this is his second field. Everything looks good from here...Can you run the file normally from a shell?
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  9. #8
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    yeah, infact ,y s-claws launcher is

    /home/kevin/bin/getmyemailnow %% syphleed-claws

    its got me quite confuzzled
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  10. #9
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Did you check your /etc/cron.{allow,deny} ? Can you run other cronjobs as kevin?
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  11. #10
    Just Joined!
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    53
    Did crontab read the file after you changed it?

    For normal user crontabs I would recommend using the 'crontab -e' command to edit it and not the manual way.

    Btw, for those of you not familiar with vi just do a 'export EDITOR=<your-favorit-editor>" before running "crontab -e".

Page 1 of 2 1 2 LastLast

Posting Permissions

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