Add A Custom Cron Job In ORIV: Step-By-Step Guide
Simply follow the below steps to add a custom cron job in ORIV to manage & execute specific tasks at a predefined timeframe.Step 1: Login To Your Hosting Panel
With the right credentials, log in to your ORIV dashboard.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Step 2: Locate The Cron Job Settings
From your ORIV dashboard, navigate to ‘All Servers’, click on any server (if you have many), & get the Cron Jobs on the left sidebar of your server dashboard.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Step 3: Create a New Cron Job
To create a new cron job, click on the ‘Add Cron Job’ on the following page. It will redirect you to the next of adding a custom cron job in ORIV.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Step 4: Specify The Schedule
On the resulting page, execute the command, set the user, & determine the frequency of the cron job using the provided drop-down menu with predefined values. In the ‘User‘ field, you can set both the root user & non root (site user, sudo user) user. Note: If you want to execute WP-CLI command, you need to make it with site users.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.After choosing the type of script to run (PHP, curl, or wget) and specifying the command to execute. Once all this is done, click on ‘Save’ to save your configuration. Moreover, you can set a custom schedule too. To do so, click on the ‘Custom’ option as shown below & set the ‘Custom Schedule.’ With the below syntax in ‘Custom Schedule’, you can create any scheduling need. 1* * * * * /path/to/script.sh 2* * * * * command
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.In the above command, the 5 asterisk signs allow you to control minutes, hours, days, months, and days of weeks. The range includes:
- Minute (Range: 0 to 59)
- Hour (Range: 0 to 23)
- Day of month (Range: 1 to 31)
- Month (Range: 1 to 12)
- Day of week (Range: 0 to 6, Sunday will count as 0)
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Step 5: Save The Cron Job & See The Output
Once everything is configured, your cron job will be listed under the Basic tab in ORIV.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Add A Custom Cron Job For Your Site: Step-By-Step Guide
Follow the steps below to add a custom cron job in ORIV and run specific tasks at a scheduled time on your site. From the ORIV dashboard, open your site dashboard and navigate to Tools → Cron Jobs from the sidebar. Click Add New Cron Job to create a new cron job. This will take you to the configuration page where you can set it up.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.In the Command field, enter the command you want to run. Common examples:
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Next, select how often the cron job should run using the Frequency radio buttons:
If you select Custom, an additional Custom Schedule field appears where you can enter any valid cron expression (e.g., */15 * * * * for every 15 minutes).
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Managing Existing Cron Jobs
You can easily manage your cron jobs. From the Cron Jobs list, ‘Run Now’, ‘View Output’, ‘Edit’, ‘Delete’ for each of the cron jobs.[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.This is how you can easily add a custom cron job in ORIV. Still stuck? Contact our support team for any of your queries.
