How to schedule a Program to run once in a month?

Home Questions How to schedule a Program to run once in a month?

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  admin 2 years, 2 months ago.

  • Author
    Posts
  • #6665 Reply

    Vijaya Ban

    I need a simple trick to automatically execute a shell scrip at one time on start of every month… No concern regarding exact day or time…

    It will reduce one of our monthly task in our office… 🙂

  • #6754 Reply

    Thushara Muralidharan
    Participant
    Offline
    Topics: 12
    Replies: 10

    Schedule the script using crontab.

    If you are using crontab, add the below entry to the crontab. This schedule your script to run at 00:00 in first day of every month.

    0 0 1 * * /script_name
  • #6757 Reply

    admin
    Keymaster
    Online
    Topics: 65
    Replies: 65

    Try this:

    @monthly /script_name

    This will exactly run the script at 12:00 AM/00:00 on 1st of every month.

Reply To: How to schedule a Program to run once in a month?

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Your information: