DocumentationWhat payment methods does Hostednode accept?What are Hostednode's billing cycles?When is the monthly renewal charge generated?When are services suspended for non-payment?When is a service deleted for non-payment?What should you do if a payment method is unavailable?Are all services subject to VAT?Do you issue receipts or invoices?How to create a customer account on HostednodeDo you accept cryptocurrency payments?How to Access DirectAdmin and Explore the Panel’s Main FeaturesHow to Configure PHP for Subdomains and Additional Domains in DirectAdminHow to change the PHP version and settings in DirectAdminHow to Create an Email Account in DirectAdminHow to use ClamAV antivirus from DirectAdminHow to Enable and Use Redis from DirectAdminHow to Add a Domain Alias and Use It for Email in DirectAdminHow to Add an Additional Domain in DirectAdminHow to Add an Additional User to an Existing Database in DirectAdminHow to configure an autoresponder in DirectAdminHow to Set Up a Vacation Message in DirectAdminHow to Create a Subdomain in DirectAdminHow to Create a Cron Job in DirectAdminHow to Create a Database and Associate Its User in DirectAdminHow to Create an FTP Account in DirectAdminHow to Create a Mailing List in DirectAdminHow to Create an Email Forwarder in DirectAdminHow to Create a Site Redirect in DirectAdminHow to Install WordPress with Softaculous WordPress Management in DirectAdminHow to Install WordPress with the DirectAdmin WordPress ManagerHow to Modify MX Records to Use Google Workspace in DirectAdminHow to review the web application firewall and create a rule exception in DirectAdminHow to Check Account Resource Usage in DirectAdmin
TUTORIAL

How to Create a Cron Job in DirectAdmin

Schedule a Cron job in DirectAdmin, define its five schedule fields, and verify the saved command and schedule.

A cron job runs a command at the frequency you specify. DirectAdmin provides a form for setting the schedule and managing the account's tasks.

Before you begin

Identify the command your application needs and its recommended frequency. An incorrect command can fail even if the schedule is valid. Also check the time displayed on the form.

On the dashboard, open Advanced Features → Cron Jobs and click Create Cron Job.

DirectAdmin dashboard showing tool groups and account statistics.
DirectAdmin dashboard showing tool groups and account statistics.

1. Set the frequency

The form contains five fields: Minute, Hour, Day of Month, Month and Day of Week. An asterisk (*) accepts all values for that field.

  1. To run daily at 03:00, enter 0 in Minute and 3 in Hour.

  2. Leave * in Day of Month, Month, and Day of Week.

  3. Review the phrase Cron job will run calculated by the panel.

  4. Leave Run on @reboot unchecked when you want to use a regular schedule.

You can also use lists such as 0,30, ranges such as 1-5 and intervals such as */15 in the corresponding field. Adjust the frequency to suit the application and service limits. Do not schedule overlapping runs if the task may take longer than its interval.

2. Enter the command and create the task

In Command, enter the full command provided by your application, using the paths for your account. The example /bin/date > /dev/null runs the date command and discards its output; it helps explain the form but does not perform a task for your application.

Daily schedule at 03:00 and Command field in Create Cron Job.
Daily schedule at 03:00 and Command field in Create Cron Job.

The button Prevent E-Mail lets you adjust the command's output according to the panel's behavior. Review the resulting text before saving; hiding the output can also hide useful information for diagnosing a failure.

Click Create and wait for Cron job created.

3. Verify the saved settings

Created cron job with its five schedule fields and command.
Created cron job with its five schedule fields and command.

Check the five fields and the full command in the table. Use Edit if you need to correct them. The presence of the row confirms the schedule, but not that the command has completed successfully: check for the expected result in the application after its next run.

If a task does not work, check the command, its paths, the execution time, and the account permissions. Avoid creating duplicates when trying to fix it.