XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XO one time job scheduler

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 3 Posters 58 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      RS
      last edited by

      Hello, is possible create job what will run only one time on specific time and date?

      tjkreidlT 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        It reminds me a similar convo we had less than a month ago, do you remember anything on this @florent or @lsouai-vates ? 🤔

        1 Reply Last reply Reply Quote 0
        • tjkreidlT Offline
          tjkreidl Ambassador @RS
          last edited by

          @RS One option would be this, assuming in this se you want to run the job at midnight on Dec. 25:
          /bin/echo "/path/to/your/script.sh" | at midnight Dec 25

          While cron doesn't offer a specific one-time execution, you could also do this in cron but would have to remove the entry afterwards:
          0 0 25 12 * /path/to/your/script.sh

          Also, take a look at this option: https://www.fastcron.com/guides/one-time-cronjobs/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post