Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on quickie question about a cron job in the Open Discussion & Chit-chat forum
Basically I set up an email account to recieve messages that are forwarded from gmail, it goes through the server and then gets sent to ...

  1. #1
    JPC Senior Member
    Join Date
    Nov 2003
    Posts
    63

    quickie question about a cron job

    Basically I set up an email account to recieve messages that are forwarded from gmail, it goes through the server and then gets sent to my Tungsten as a sms message.

    I did the suggested get /blah/blah / /dev/null as the cpanel hint suggested but am curious about the time thing

    min hour day month weekday

    10 * * * *

    Would the above mean that the email server should be polled every ten minutes ? or am I missing something.

    Tuxxer
    What would Bugs Bunny say

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    No, a 10 in that field will tell cron to run 10 minutes after the hour. Since you the next field, hour, set to "*," this command would run every hour at 10 past the hour.

    To get it to run every ten minutes, use */10. You can also supply a list of specific times that you want it to run, like 0,10,20,30,40,50 which would run the job at 10 past, 20 past, half past, twenty to, and 10 to the hour (which would be the same as */10).

    These work in all fields: */2 in the day of month field would run the job every other day, for example, and 0,2,4,6 in the day of week field would run it Sunday, Tuesday, Thursday, and Saturday.

    Hope that helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Senior Member
    Join Date
    Nov 2003
    Posts
    63
    Quote Originally Posted by jason
    No, a 10 in that field will tell cron to run 10 minutes after the hour. Since you the next field, hour, set to "*," this command would run every hour at 10 past the hour.

    To get it to run every ten minutes, use */10. You can also supply a list of specific times that you want it to run, like 0,10,20,30,40,50 which would run the job at 10 past, 20 past, half past, twenty to, and 10 to the hour (which would be the same as */10).

    These work in all fields: */2 in the day of month field would run the job every other day, for example, and 0,2,4,6 in the day of week field would run it Sunday, Tuesday, Thursday, and Saturday.

    Hope that helps.

    --Jason
    I reset the cron job to */10 in the minutes field , now to wait and see if it works.

    Thanks Jason

    tuxxer
    What would Bugs Bunny say

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
  •