help required to set a crontab entry
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: help required to set a crontab entry

  1. #1
    Join Date
    Oct 2009
    Posts
    30

    help required to set a crontab entry

    Hi,

    I want to set a cronjob entry such that the job runs at 9:30, 10:30 and 16:00 for all days, all months, all weekdays.

    Please find the below entry:
    0,30 9,10,16 * * * /some/script/or/command

    I think the above entry would run at 9:00,9:30,10:00,10:30,16:00,16:30.

    How can I modify the above entry to run at 9:30,10:30 and 16:00.

    Please suggest.

    Thanks in Advance,
    Aakriti

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,003
    Quote Originally Posted by getnami View Post
    Hi,

    I want to set a cronjob entry such that the job runs at 9:30, 10:30 and 16:00 for all days, all months, all weekdays.

    Please find the below entry:
    0,30 9,10,16 * * * /some/script/or/command

    I think the above entry would run at 9:00,9:30,10:00,10:30,16:00,16:30.

    How can I modify the above entry to run at 9:30,10:30 and 16:00.

    Please suggest.

    Thanks in Advance,
    Aakriti
    Sure you can, just break it up into two lines.
    Code:
    30 9,10 * * * /some/script/or/command 
    0    16 * * * /some/script/or/command
    this space intentionally left blank

Posting Permissions

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



Click Here to Expand Forum to Full Width